diff options
author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2011-07-29 01:31:15 +0000 |
---|---|---|
committer | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2011-07-29 01:31:15 +0000 |
commit | dd6353073f8345e76716e5785da5a48bc964eac9 (patch) | |
tree | 637d5af8da44798af6a8b89436897a600c7eecfe /test | |
parent | 2eb4c2bcadfbef9d3c4e2fbb6478ed5dc3d65524 (diff) | |
download | external_llvm-dd6353073f8345e76716e5785da5a48bc964eac9.zip external_llvm-dd6353073f8345e76716e5785da5a48bc964eac9.tar.gz external_llvm-dd6353073f8345e76716e5785da5a48bc964eac9.tar.bz2 |
Match VPERMIL masks more strictly and update the target specific mask
generation to always catch the weird cases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136453 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/X86/avx-vpermil.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/X86/avx-vpermil.ll b/test/CodeGen/X86/avx-vpermil.ll index f059948..a3e916d 100644 --- a/test/CodeGen/X86/avx-vpermil.ll +++ b/test/CodeGen/X86/avx-vpermil.ll @@ -27,3 +27,13 @@ entry: %shuffle = shufflevector <4 x i64> %a, <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 +define <8 x float> @funcA(<8 x float> %a) nounwind uwtable readnone ssp { +entry: + %shuffle = shufflevector <8 x float> %a, <8 x float> undef, <8 x i32> <i32 8, i32 3, i32 1, i32 2, i32 4, i32 8, i32 5, i32 6> + ret <8 x float> %shuffle +} + |