blob: 320835576d41836c0367f42bac5312643d36550d [file] [log] [blame]
Christian Konig08f59292013-03-27 15:27:31 +00001;RUN: llc < %s -march=r600 -mcpu=SI | FileCheck %s
2
3;CHECK: V_CMP_U_F32_e64 SGPR0_SGPR1, VGPR0, VGPR0, 0, 0, 0, 0
4
5define void @main(float %p) {
6main_body:
7 %c = fcmp une 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
13declare void @llvm.SI.export(i32, i32, i32, i32, i32, float, float, float, float)