Mercurial > hg > CbC > CbC_llvm
view test/CodeGen/AMDGPU/llvm.amdgpu.kilp.ll @ 95:afa8332a0e37 LLVM3.8
LLVM 3.8
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 13 Oct 2015 17:48:58 +0900 |
parents | test/CodeGen/R600/llvm.amdgpu.kilp.ll@60c9769439b8 |
children | 1172e4bd9c6f |
line wrap: on
line source
; RUN: llc -march=amdgcn -mcpu=verde -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s ; RUN: llc -march=amdgcn -mcpu=tonga -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s ; SI-LABEL: {{^}}kilp_gs_const: ; SI: s_mov_b64 exec, 0 define void @kilp_gs_const() #0 { main_body: %0 = icmp ule i32 0, 3 %1 = select i1 %0, float 1.000000e+00, float -1.000000e+00 call void @llvm.AMDGPU.kilp(float %1) %2 = icmp ule i32 3, 0 %3 = select i1 %2, float 1.000000e+00, float -1.000000e+00 call void @llvm.AMDGPU.kilp(float %3) ret void } declare void @llvm.AMDGPU.kilp(float) attributes #0 = { "ShaderType"="2" } !0 = !{!"const", null, i32 1}