2014-07-12 00:36:19 +00:00
|
|
|
; RUN: llc -march=r600 -mcpu=verde -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s
|
2014-02-27 01:47:02 +00:00
|
|
|
|
2014-10-01 17:15:17 +00:00
|
|
|
; SI-LABEL: {{^}}kill_gs_const:
|
2014-11-05 14:50:53 +00:00
|
|
|
; SI-NOT: v_cmpx_le_f32
|
|
|
|
; SI: s_mov_b64 exec, 0
|
2014-02-27 01:47:02 +00:00
|
|
|
|
2014-02-27 01:47:09 +00:00
|
|
|
define void @kill_gs_const() #0 {
|
2014-02-27 01:47:02 +00:00
|
|
|
main_body:
|
|
|
|
%0 = icmp ule i32 0, 3
|
|
|
|
%1 = select i1 %0, float 1.000000e+00, float -1.000000e+00
|
|
|
|
call void @llvm.AMDGPU.kill(float %1)
|
2014-02-27 01:47:09 +00:00
|
|
|
%2 = icmp ule i32 3, 0
|
|
|
|
%3 = select i1 %2, float 1.000000e+00, float -1.000000e+00
|
|
|
|
call void @llvm.AMDGPU.kill(float %3)
|
2014-02-27 01:47:02 +00:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
declare void @llvm.AMDGPU.kill(float)
|
|
|
|
|
|
|
|
attributes #0 = { "ShaderType"="2" }
|
|
|
|
|
|
|
|
!0 = metadata !{metadata !"const", null, i32 1}
|