[llvm] r220371 - R600/SI: Add another failing testcase for i1 copies
Matt Arsenault
Matthew.Arsenault at amd.com
Tue Oct 21 22:30:42 PDT 2014
Author: arsenm
Date: Wed Oct 22 00:30:42 2014
New Revision: 220371
URL: http://llvm.org/viewvc/llvm-project?rev=220371&view=rev
Log:
R600/SI: Add another failing testcase for i1 copies
It's not handling phis.
Added:
llvm/trunk/test/CodeGen/R600/i1-copy-phi.ll
Added: llvm/trunk/test/CodeGen/R600/i1-copy-phi.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/R600/i1-copy-phi.ll?rev=220371&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/R600/i1-copy-phi.ll (added)
+++ llvm/trunk/test/CodeGen/R600/i1-copy-phi.ll Wed Oct 22 00:30:42 2014
@@ -0,0 +1,21 @@
+; XFAIL: *
+; RUN: llc -march=r600 -mcpu=SI -verify-machineinstrs < %s
+
+define void @br_i1_phi(i32 %arg, i1 %arg1) #0 {
+bb:
+ br i1 %arg1, label %bb2, label %bb3
+
+bb2: ; preds = %bb
+ br label %bb3
+
+bb3: ; preds = %bb2, %bb
+ %tmp = phi i1 [ true, %bb2 ], [ false, %bb ]
+ br i1 %tmp, label %bb4, label %bb6
+
+bb4: ; preds = %bb3
+ %tmp5 = mul i32 undef, %arg
+ br label %bb6
+
+bb6: ; preds = %bb4, %bb3
+ ret void
+}
More information about the llvm-commits
mailing list