aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/misched-new.ll
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2012-12-01 01:22:44 +0000
committerAndrew Trick <atrick@apple.com>2012-12-01 01:22:44 +0000
commit177d87ac8d974529b07430b2088f699ed279cd1d (patch)
tree73b22afaa3754e1ed62a98e0ccc7fb1f8d6dd7a3 /test/CodeGen/X86/misched-new.ll
parent30fe61aa35ff12cdcbf5f94d8e3ab9a2d964654e (diff)
downloadexternal_llvm-177d87ac8d974529b07430b2088f699ed279cd1d.zip
external_llvm-177d87ac8d974529b07430b2088f699ed279cd1d.tar.gz
external_llvm-177d87ac8d974529b07430b2088f699ed279cd1d.tar.bz2
misched: Fix the DAG builder to handle an undef operand at ExitSU.
Assertion failed: (VNI && "No value to read by operand") rdar://12790267. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169071 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/misched-new.ll')
-rw-r--r--test/CodeGen/X86/misched-new.ll26
1 files changed, 26 insertions, 0 deletions
diff --git a/test/CodeGen/X86/misched-new.ll b/test/CodeGen/X86/misched-new.ll
index cec04b5..a39ea03 100644
--- a/test/CodeGen/X86/misched-new.ll
+++ b/test/CodeGen/X86/misched-new.ll
@@ -51,3 +51,29 @@ if.end: ; preds = %if.then, %entry
}
declare void @bar(i32,i32)
+
+; Test that the DAG builder can handle an undef vreg on ExitSU.
+; CHECK: hasundef
+; CHECK: call
+
+%t0 = type { i32, i32, i8 }
+%t6 = type { i32 (...)**, %t7* }
+%t7 = type { i32 (...)** }
+
+define void @hasundef() unnamed_addr uwtable ssp align 2 {
+ %1 = alloca %t0, align 8
+ br i1 undef, label %3, label %2
+
+; <label>:2 ; preds = %0
+ unreachable
+
+; <label>:3 ; preds = %0
+ br i1 undef, label %4, label %5
+
+; <label>:4 ; preds = %3
+ call void undef(%t6* undef, %t0* %1)
+ unreachable
+
+; <label>:5 ; preds = %3
+ ret void
+}