Home | History | Annotate | Download | only in R600
      1 ; RUN: llc -march=amdgcn -mcpu=verde -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s
      2 ; RUN: llc -march=amdgcn -mcpu=tonga -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s
      3 
      4 ; SI-LABEL: {{^}}kilp_gs_const:
      5 ; SI: s_mov_b64 exec, 0
      6 define void @kilp_gs_const() #0 {
      7 main_body:
      8   %0 = icmp ule i32 0, 3
      9   %1 = select i1 %0, float 1.000000e+00, float -1.000000e+00
     10   call void @llvm.AMDGPU.kilp(float %1)
     11   %2 = icmp ule i32 3, 0
     12   %3 = select i1 %2, float 1.000000e+00, float -1.000000e+00
     13   call void @llvm.AMDGPU.kilp(float %3)
     14   ret void
     15 }
     16 
     17 declare void @llvm.AMDGPU.kilp(float)
     18 
     19 attributes #0 = { "ShaderType"="2" }
     20 
     21 !0 = !{!"const", null, i32 1}
     22