source: icGREP/icgrep-devel/llvm-3.8.0.src/test/CodeGen/AMDGPU/llvm.amdgpu.kilp.ll @ 5027

Last change on this file since 5027 was 5027, checked in by cameron, 3 years ago

Upgrade to llvm 3.8

File size: 667 bytes
Line 
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 void @kilp_gs_const() #0 {
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
19attributes #0 = { "ShaderType"="2" }
20
21!0 = !{!"const", null, i32 1}
Note: See TracBrowser for help on using the repository browser.