[llvm-commits] [llvm] r79093 - /llvm/trunk/test/CodeGen/Blackfin/2009-08-15-SetCC-Undef.ll

Jakob Stoklund Olesen stoklund at 2pi.dk
Sat Aug 15 05:10:22 PDT 2009


Author: stoklund
Date: Sat Aug 15 07:10:22 2009
New Revision: 79093

URL: http://llvm.org/viewvc/llvm-project?rev=79093&view=rev
Log:
Add XFAIL testcase for setcc undef.

Added:
    llvm/trunk/test/CodeGen/Blackfin/2009-08-15-SetCC-Undef.ll

Added: llvm/trunk/test/CodeGen/Blackfin/2009-08-15-SetCC-Undef.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/Blackfin/2009-08-15-SetCC-Undef.ll?rev=79093&view=auto

==============================================================================
--- llvm/trunk/test/CodeGen/Blackfin/2009-08-15-SetCC-Undef.ll (added)
+++ llvm/trunk/test/CodeGen/Blackfin/2009-08-15-SetCC-Undef.ll Sat Aug 15 07:10:22 2009
@@ -0,0 +1,17 @@
+; RUN: llvm-as < %s | llc -march=bfin -verify-machineinstrs
+; XFAIL: *
+
+; An undef argument causes a setugt node to escape instruction selection.
+
+define void @bugt() {
+cond_next305:
+  %tmp306307 = trunc i32 undef to i8              ; <i8> [#uses=1]
+  %tmp308 = icmp ugt i8 %tmp306307, 6             ; <i1> [#uses=1]
+  br i1 %tmp308, label %bb311, label %bb314
+
+bb311:                                            ; preds = %cond_next305
+  unreachable
+
+bb314:                                            ; preds = %cond_next305
+  ret void
+}





More information about the llvm-commits mailing list