aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/pr14562.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/pr14562.ll')
-rw-r--r--test/CodeGen/X86/pr14562.ll15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/CodeGen/X86/pr14562.ll b/test/CodeGen/X86/pr14562.ll
new file mode 100644
index 0000000..2df64b3
--- /dev/null
+++ b/test/CodeGen/X86/pr14562.ll
@@ -0,0 +1,15 @@
+; RUN: llc < %s -march=x86 | FileCheck %s
+
+@temp1 = global i64 -77129852189294865, align 8
+
+define void @foo() nounwind {
+ %x = load i64* @temp1, align 8
+ %s = shl i64 %x, 32
+ %t = trunc i64 %s to i32
+ %z = zext i32 %t to i64
+ store i64 %z, i64* @temp1, align 8
+; CHECK: movl $0, temp1+4
+; CHECK: movl $0, temp1
+ ret void
+}
+