summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/2012-07-16-LeaUndef.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/2012-07-16-LeaUndef.ll')
-rw-r--r--test/CodeGen/X86/2012-07-16-LeaUndef.ll16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/CodeGen/X86/2012-07-16-LeaUndef.ll b/test/CodeGen/X86/2012-07-16-LeaUndef.ll
new file mode 100644
index 0000000..9e5cbd2
--- /dev/null
+++ b/test/CodeGen/X86/2012-07-16-LeaUndef.ll
@@ -0,0 +1,16 @@
+; RUN: llc < %s -march=x86-64 -mcpu=corei7
+
+define void @autogen_SD2543() {
+A:
+ %E83 = add i32 0, 1
+ %E820 = add i32 0, undef
+ br label %C
+C:
+ %B908 = add i32 %E83, %E820
+ store i32 %B908, i32* undef
+ %Sl2391 = select i1 undef, i32 undef, i32 %E83
+ %Cmp3114 = icmp ne i32 %Sl2391, undef
+ br i1 %Cmp3114, label %C, label %G
+G:
+ ret void
+}
OpenPOWER on IntegriCloud