diff options
author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2011-07-29 01:31:07 +0000 |
---|---|---|
committer | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2011-07-29 01:31:07 +0000 |
commit | e89c7d4ce3636b52ab528bcb1c8a1c4b6dc649c7 (patch) | |
tree | ddb5719879111ecaaaeeb9a10d457b301a74f79b /test | |
parent | 377baa5bc9901f705f7af97d0bee7a281e264eca (diff) | |
download | external_llvm-e89c7d4ce3636b52ab528bcb1c8a1c4b6dc649c7.zip external_llvm-e89c7d4ce3636b52ab528bcb1c8a1c4b6dc649c7.tar.gz external_llvm-e89c7d4ce3636b52ab528bcb1c8a1c4b6dc649c7.tar.bz2 |
Add v8i32 and v4i64 vpermil patterns
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136451 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/X86/avx-vpermil.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/X86/avx-vpermil.ll b/test/CodeGen/X86/avx-vpermil.ll index d57c173..f059948 100644 --- a/test/CodeGen/X86/avx-vpermil.ll +++ b/test/CodeGen/X86/avx-vpermil.ll @@ -14,3 +14,16 @@ entry: ret <4 x double> %shuffle } +; CHECK: vpermilps +define <8 x i32> @funcC(<8 x i32> %a) nounwind uwtable readnone ssp { +entry: + %shuffle = shufflevector <8 x i32> %a, <8 x i32> undef, <8 x i32> <i32 1, i32 2, i32 3, i32 1, i32 5, i32 6, i32 7, i32 5> + ret <8 x i32> %shuffle +} + +; CHECK: vpermilpd +define <4 x i64> @funcD(<4 x i64> %a) nounwind uwtable readnone ssp { +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 +} |