summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/sse3.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-15 17:01:44 +0000
committerChris Lattner <sabre@nondot.org>2009-08-15 17:01:44 +0000
commitbd0463098ba8f2fbf49a671500e55c525f66cade (patch)
tree7fd216f7024b94f7fba7a3d7419fc09aec4f657f /test/CodeGen/X86/sse3.ll
parent37c59b48c719992fe5244b64db6d63f33a57f3c8 (diff)
downloadllvm-bd0463098ba8f2fbf49a671500e55c525f66cade.tar.gz
llvm-bd0463098ba8f2fbf49a671500e55c525f66cade.tar.bz2
llvm-bd0463098ba8f2fbf49a671500e55c525f66cade.tar.xz
rename test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79113 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/sse3.ll')
-rw-r--r--test/CodeGen/X86/sse3.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGen/X86/sse3.ll b/test/CodeGen/X86/sse3.ll
new file mode 100644
index 0000000000..a498ac527c
--- /dev/null
+++ b/test/CodeGen/X86/sse3.ll
@@ -0,0 +1,14 @@
+; RUN: llvm-as < %s | llc -march=x86 -mcpu=yonah -o %t -f
+; RUN: not grep pextrw %t
+; RUN: grep pinsrw %t
+
+; Test for v8xi16 lowering where we extract the first element of the vector and
+; placed it in the second element of the result.
+
+define void @test_cl(<8 x i16> addrspace(1)* %dest, <8 x i16> addrspace(1)* %old) nounwind {
+entry:
+ %tmp3 = load <8 x i16> addrspace(1)* %old ; <<8 x i16>> [#uses=1]
+ %tmp6 = shufflevector <8 x i16> %tmp3, <8 x i16> < i16 0, i16 undef, i16 undef, i16 undef, i16 undef, i16 undef, i16 undef, i16 undef >, <8 x i32> < i32 8, i32 0, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef > ; <<8 x i16>> [#uses=1]
+ store <8 x i16> %tmp6, <8 x i16> addrspace(1)* %dest
+ ret void
+} \ No newline at end of file