aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2009-06-08 15:36:37 +0000
committerEd Schouten <ed@FreeBSD.org>2009-06-08 15:36:37 +0000
commit93338c197185f946619794ce011ec27b5b6250e2 (patch)
tree674737fb36b447a4141b2fbaf40d3465434fdfad /test
parentd2a7037439ec5d4f4d2b7a813a3f1a83e10756b1 (diff)
Notes
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/X86/2009-06-07-ExpandMMXBitcast.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/X86/2009-06-07-ExpandMMXBitcast.ll b/test/CodeGen/X86/2009-06-07-ExpandMMXBitcast.ll
new file mode 100644
index 000000000000..c3687a533e05
--- /dev/null
+++ b/test/CodeGen/X86/2009-06-07-ExpandMMXBitcast.ll
@@ -0,0 +1,10 @@
+; RUN: llvm-as < %s | llc -march=x86 -mattr=+mmx | grep movl | count 2
+
+define i64 @a(i32 %a, i32 %b) nounwind readnone {
+entry:
+ %0 = insertelement <2 x i32> undef, i32 %a, i32 0 ; <<2 x i32>> [#uses=1]
+ %1 = insertelement <2 x i32> %0, i32 %b, i32 1 ; <<2 x i32>> [#uses=1]
+ %conv = bitcast <2 x i32> %1 to i64 ; <i64> [#uses=1]
+ ret i64 %conv
+}
+