summaryrefslogtreecommitdiff
path: root/test/CodeGen/AMDGPU/i1-copy-phi.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/AMDGPU/i1-copy-phi.ll')
-rw-r--r--test/CodeGen/AMDGPU/i1-copy-phi.ll10
1 files changed, 8 insertions, 2 deletions
diff --git a/test/CodeGen/AMDGPU/i1-copy-phi.ll b/test/CodeGen/AMDGPU/i1-copy-phi.ll
index 105cd06b330..e6129e62e34 100644
--- a/test/CodeGen/AMDGPU/i1-copy-phi.ll
+++ b/test/CodeGen/AMDGPU/i1-copy-phi.ll
@@ -10,9 +10,11 @@
; SI: s_and_saveexec_b64
; SI: s_xor_b64
; SI: s_endpgm
-define void @br_i1_phi(i32 %arg, i1 %arg1) #0 {
+define void @br_i1_phi(i32 %arg) {
bb:
- br i1 %arg1, label %bb2, label %bb3
+ %tidig = call i32 @llvm.r600.read.tidig.x() #0
+ %cmp = trunc i32 %tidig to i1
+ br i1 %cmp, label %bb2, label %bb3
bb2: ; preds = %bb
br label %bb3
@@ -28,3 +30,7 @@ bb4: ; preds = %bb3
bb6: ; preds = %bb4, %bb3
ret void
}
+
+declare i32 @llvm.r600.read.tidig.x() #0
+
+attributes #0 = { readnone }