summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/vec_insert-6.ll
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-05-29 08:22:04 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-05-29 08:22:04 +0000
commitf26ffe987cf3643a7bd66bd9f97c34605ba7d08e (patch)
tree96ec60731614a458cd3ad8f59bd6f109d715e3f4 /test/CodeGen/X86/vec_insert-6.ll
parentcd5e6dda7e91af662f378e43842e6d2d55ec3057 (diff)
downloadexternal_llvm-f26ffe987cf3643a7bd66bd9f97c34605ba7d08e.zip
external_llvm-f26ffe987cf3643a7bd66bd9f97c34605ba7d08e.tar.gz
external_llvm-f26ffe987cf3643a7bd66bd9f97c34605ba7d08e.tar.bz2
Implement vector shift up / down and insert zero with ps{rl}lq / ps{rl}ldq.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51667 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/vec_insert-6.ll')
-rw-r--r--test/CodeGen/X86/vec_insert-6.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/X86/vec_insert-6.ll b/test/CodeGen/X86/vec_insert-6.ll
new file mode 100644
index 0000000..405152e
--- /dev/null
+++ b/test/CodeGen/X86/vec_insert-6.ll
@@ -0,0 +1,7 @@
+; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | not grep pslldq
+
+define <4 x float> @t3(<4 x float>* %P) nounwind {
+ %tmp1 = load <4 x float>* %P
+ %tmp2 = shufflevector <4 x float> zeroinitializer, <4 x float> %tmp1, <4 x i32> < i32 4, i32 4, i32 4, i32 0 >
+ ret <4 x float> %tmp2
+}