summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/2009-01-31-BigShift2.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/2009-01-31-BigShift2.ll')
-rw-r--r--test/CodeGen/X86/2009-01-31-BigShift2.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/X86/2009-01-31-BigShift2.ll b/test/CodeGen/X86/2009-01-31-BigShift2.ll
new file mode 100644
index 0000000000..2b5b189578
--- /dev/null
+++ b/test/CodeGen/X86/2009-01-31-BigShift2.ll
@@ -0,0 +1,11 @@
+; RUN: llvm-as < %s | llc -march=x86 | grep {mov.*56}
+; PR3449
+
+define void @test(<8 x double>* %P, i64* %Q) nounwind {
+ %A = load <8 x double>* %P ; <<8 x double>> [#uses=1]
+ %B = bitcast <8 x double> %A to i512 ; <i512> [#uses=1]
+ %C = lshr i512 %B, 448 ; <i512> [#uses=1]
+ %D = trunc i512 %C to i64 ; <i64> [#uses=1]
+ volatile store i64 %D, i64* %Q
+ ret void
+}