aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/vec_set-8.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/vec_set-8.ll')
-rw-r--r--test/CodeGen/X86/vec_set-8.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/X86/vec_set-8.ll b/test/CodeGen/X86/vec_set-8.ll
new file mode 100644
index 0000000..cca436b
--- /dev/null
+++ b/test/CodeGen/X86/vec_set-8.ll
@@ -0,0 +1,10 @@
+; RUN: llvm-as < %s | llc -march=x86-64 | not grep movsd
+; RUN: llvm-as < %s | llc -march=x86-64 | grep {movd.*%rdi,.*%xmm0}
+
+define <2 x i64> @test(i64 %i) nounwind {
+entry:
+ %tmp10 = insertelement <2 x i64> undef, i64 %i, i32 0
+ %tmp11 = insertelement <2 x i64> %tmp10, i64 0, i32 1
+ ret <2 x i64> %tmp11
+}
+