summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/vec_shuffle-36.ll
diff options
context:
space:
mode:
authorMon P Wang <wangmp@apple.com>2009-03-11 06:35:11 +0000
committerMon P Wang <wangmp@apple.com>2009-03-11 06:35:11 +0000
commit37b9a19653bfa8cbc6047236f563a3d1dccbadf4 (patch)
treeb237d41709fb207fd926af86bfacdf132709d5fa /test/CodeGen/X86/vec_shuffle-36.ll
parent47b4ce85293b5668eb7b7b6ccc484b69d5f8b602 (diff)
downloadexternal_llvm-37b9a19653bfa8cbc6047236f563a3d1dccbadf4.zip
external_llvm-37b9a19653bfa8cbc6047236f563a3d1dccbadf4.tar.gz
external_llvm-37b9a19653bfa8cbc6047236f563a3d1dccbadf4.tar.bz2
Fixed a v8i16 shuffle case that should generate a pshufb instead of a pshuflw/hw.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66645 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/vec_shuffle-36.ll')
-rw-r--r--test/CodeGen/X86/vec_shuffle-36.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/X86/vec_shuffle-36.ll b/test/CodeGen/X86/vec_shuffle-36.ll
new file mode 100644
index 0000000..0051187
--- /dev/null
+++ b/test/CodeGen/X86/vec_shuffle-36.ll
@@ -0,0 +1,9 @@
+; RUN: llvm-as < %s | llc -march=x86 -mattr=sse41 -o %t -f
+; RUN: grep pshufb %t | count 1
+
+
+define <8 x i16> @shuf6(<8 x i16> %T0, <8 x i16> %T1) nounwind readnone {
+entry:
+ %tmp9 = shufflevector <8 x i16> %T0, <8 x i16> %T1, <8 x i32> < i32 3, i32 2, i32 0, i32 2, i32 1, i32 5, i32 6 , i32 undef >
+ ret <8 x i16> %tmp9
+}