summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-12-29 19:31:47 +0000
committerChris Lattner <sabre@nondot.org>2007-12-29 19:31:47 +0000
commit03c079d5fca2f98a1665af44b3c222d74e580079 (patch)
tree3d5799baf4380c2a461d987edd644f7e2314ce25 /test
parent18f07f49c528c1e43dbf82b05216726d84dbc4b3 (diff)
downloadllvm-03c079d5fca2f98a1665af44b3c222d74e580079.tar.gz
llvm-03c079d5fca2f98a1665af44b3c222d74e580079.tar.bz2
llvm-03c079d5fca2f98a1665af44b3c222d74e580079.tar.xz
One readme entry is done, one is really easy (Evan, want to investigate
eliminating the llvm.x86.sse2.loadl.pd intrinsic?), one shuffle optzn may be done (if shufps is better than pinsw, Evan, please review), and we already know about LICM of simple instructions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45407 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-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 0000000000..cca436bf64
--- /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
+}
+