diff options
Diffstat (limited to 'test/CodeGen/AMDGPU/endcf-loop-header.ll')
-rw-r--r-- | test/CodeGen/AMDGPU/endcf-loop-header.ll | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/CodeGen/AMDGPU/endcf-loop-header.ll b/test/CodeGen/AMDGPU/endcf-loop-header.ll index 267a323c50639..c67095438ee59 100644 --- a/test/CodeGen/AMDGPU/endcf-loop-header.ll +++ b/test/CodeGen/AMDGPU/endcf-loop-header.ll @@ -12,8 +12,9 @@ ; CHECK: [[LOOP_LABEL:[0-9A-Za-z_]+]]: ; %loop{{$}} ; CHECK-NOT: s_or_b64 exec, exec ; CHECK: s_cbranch_execnz [[LOOP_LABEL]] -define void @test(i32 addrspace(1)* %out, i32 %cond) { +define void @test(i32 addrspace(1)* %out) { entry: + %cond = call i32 @llvm.r600.read.tidig.x() #0 %tmp0 = icmp eq i32 %cond, 0 br i1 %tmp0, label %if, label %loop @@ -32,3 +33,7 @@ done: store i32 %inc, i32 addrspace(1)* %tmp3 ret void } + +declare i32 @llvm.r600.read.tidig.x() #0 + +attributes #0 = { readnone } |