summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/avx512-shuffle.ll
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2013-08-15 07:30:51 +0000
committerCraig Topper <craig.topper@gmail.com>2013-08-15 07:30:51 +0000
commit46ceaf4ba64cdd0ac37578c0132cad39c9ea21c0 (patch)
tree5801e7c77b15f467e33716b4364c2119f106192c /test/CodeGen/X86/avx512-shuffle.ll
parent84e51517e25119419d53d6ed61fef15219efd733 (diff)
downloadllvm-46ceaf4ba64cdd0ac37578c0132cad39c9ea21c0.tar.gz
llvm-46ceaf4ba64cdd0ac37578c0132cad39c9ea21c0.tar.bz2
llvm-46ceaf4ba64cdd0ac37578c0132cad39c9ea21c0.tar.xz
Don't let isPermImmMask handle v16i32 since VPERMI doesn't match on that type. Remove 128-bit vector handling from isPermImmMask too, it's covered by isPSHUFDMask.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188449 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/avx512-shuffle.ll')
-rw-r--r--test/CodeGen/X86/avx512-shuffle.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/X86/avx512-shuffle.ll b/test/CodeGen/X86/avx512-shuffle.ll
index 9f3d86a5e6..71e7ebc184 100644
--- a/test/CodeGen/X86/avx512-shuffle.ll
+++ b/test/CodeGen/X86/avx512-shuffle.ll
@@ -32,6 +32,14 @@ define <16 x i32> @test2(<16 x i32> %a) nounwind {
ret <16 x i32> %c
}
+; CHECK: test2b:
+; CHECK: vpermd
+; CHECK: ret
+define <16 x i32> @test2b(<16 x i32> %a) nounwind {
+ %c = shufflevector <16 x i32> %a, <16 x i32> undef, <16 x i32> <i32 3, i32 2, i32 1, i32 0, i32 7, i32 6, i32 5, i32 4, i32 11, i32 10, i32 9, i32 8, i32 15, i32 14, i32 13, i32 12>
+ ret <16 x i32> %c
+}
+
; CHECK: test3:
; CHECK: vpermq
; CHECK: ret