summaryrefslogtreecommitdiffstats
path: root/llvm/test
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
commit2ffd06528dd27ba3f41be9454c701a7aee0f7424 (patch)
treece10ca6c9ed3c908f3c47571d058ed7feb6ee83f /llvm/test
parent3186eb3efdd65c562335e46803394fc984f7ddfd (diff)
downloadbcm5719-llvm-2ffd06528dd27ba3f41be9454c701a7aee0f7424.tar.gz
bcm5719-llvm-2ffd06528dd27ba3f41be9454c701a7aee0f7424.zip
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.
llvm-svn: 188449
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/X86/avx512-shuffle.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/avx512-shuffle.ll b/llvm/test/CodeGen/X86/avx512-shuffle.ll
index 9f3d86a5e64..71e7ebc1848 100644
--- a/llvm/test/CodeGen/X86/avx512-shuffle.ll
+++ b/llvm/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
OpenPOWER on IntegriCloud