• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
6define amdgpu_gs void @kilp_gs_const() {
7main_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
17declare void @llvm.AMDGPU.kilp(float)
18
19!0 = !{!"const", null, i32 1}
20