summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/avx-vpermil.ll
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2011-11-29 07:49:05 +0000
committerCraig Topper <craig.topper@gmail.com>2011-11-29 07:49:05 +0000
commit36e36ace77cf84d7c8326957925550624b3fc89c (patch)
treed765b1b9b9819b4c4e7014d39c7a1500a4b209f3 /test/CodeGen/X86/avx-vpermil.ll
parent5d2f8c31556b6a5ce29d2cad314bc48af879c5b3 (diff)
downloadllvm-36e36ace77cf84d7c8326957925550624b3fc89c.tar.gz
llvm-36e36ace77cf84d7c8326957925550624b3fc89c.tar.bz2
llvm-36e36ace77cf84d7c8326957925550624b3fc89c.tar.xz
Fix issues in shuffle decoding around VPERM* instructions. Fix shuffle decoding for VSHUFPS/D for 256-bit types. Add pattern matching for memory forms of VPERMILPS/VPERMILPD.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145390 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/avx-vpermil.ll')
-rw-r--r--test/CodeGen/X86/avx-vpermil.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/X86/avx-vpermil.ll b/test/CodeGen/X86/avx-vpermil.ll
index 49b2f540a2..3d521e7cea 100644
--- a/test/CodeGen/X86/avx-vpermil.ll
+++ b/test/CodeGen/X86/avx-vpermil.ll
@@ -28,6 +28,14 @@ entry:
ret <4 x i64> %shuffle
}
+; CHECK: vpermilpd
+define <4 x i64> @funcQ(<4 x i64>* %a) nounwind uwtable readnone ssp {
+entry:
+ %a2 = load <4 x i64>* %a
+ %shuffle = shufflevector <4 x i64> %a2, <4 x i64> undef, <4 x i32> <i32 1, i32 0, i32 3, i32 3>
+ ret <4 x i64> %shuffle
+}
+
; vpermil should match masks like this: <u,3,1,2,4,u,5,6>. Check that the
; target specific mask was correctly generated.
; CHECK: vpermilps $-100