]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGen/R600/seto.ll
Vendor import of llvm trunk r178860:
[FreeBSD/FreeBSD.git] / test / CodeGen / R600 / seto.ll
1 ;RUN: llc < %s -march=r600 -mcpu=SI | FileCheck %s
2
3 ;CHECK: V_CMP_O_F32_e64 SGPR0_SGPR1, VGPR0, VGPR0, 0, 0, 0, 0
4
5 define void @main(float %p) {
6 main_body:
7   %c = fcmp oeq float %p, %p
8   %r = select i1 %c, float 1.000000e+00, float 0.000000e+00
9   call void @llvm.SI.export(i32 15, i32 1, i32 1, i32 0, i32 0, float %r, float %r, float %r, float %r)
10   ret void
11 }
12
13 declare void @llvm.SI.export(i32, i32, i32, i32, i32, float, float, float, float)