diff options
author | Craig Topper <craig.topper@gmail.com> | 2012-04-06 14:38:25 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2012-04-06 14:38:25 +0000 |
commit | f85cb768fe3eeaf221a3bab8edafc3f80908e857 (patch) | |
tree | 4832fd898d824accf28d20bfcbb7cf92987e350a /test | |
parent | 9e5512a8ca49df9c8776a5a6f9dfbd7b2bd50616 (diff) | |
download | external_llvm-f85cb768fe3eeaf221a3bab8edafc3f80908e857.zip external_llvm-f85cb768fe3eeaf221a3bab8edafc3f80908e857.tar.gz external_llvm-f85cb768fe3eeaf221a3bab8edafc3f80908e857.tar.bz2 |
Test case for PR12413
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154172 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/X86/avx-shuffle.ll | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/CodeGen/X86/avx-shuffle.ll b/test/CodeGen/X86/avx-shuffle.ll index 54f01e9..4885842 100644 --- a/test/CodeGen/X86/avx-shuffle.ll +++ b/test/CodeGen/X86/avx-shuffle.ll @@ -147,3 +147,18 @@ entry: %shuffle.i = shufflevector <4 x float> %1, <4 x float> <float 0.000000e+00, float undef, float undef, float undef>, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 4, i32 4, i32 4> ret <8 x float> %shuffle.i } + +; PR12413 +; CHECK: vpshufb +; CHECK: vpshufb +; CHECK: vpshufb +; CHECK: vpshufb +define <32 x i8> @shuf(<32 x i8> %inval1, <32 x i8> %inval2) { +entry: + %0 = shufflevector <32 x i8> %inval1, <32 x i8> %inval2, <32 x i32> <i32 0, +i32 2, i32 4, i32 6, i32 8, i32 10, i32 12, i32 14, i32 16, i32 18, i32 20, i32 +22, i32 24, i32 26, i32 28, i32 30, i32 32, i32 34, i32 36, i32 38, i32 40, i32 +42, i32 44, i32 46, i32 48, i32 50, i32 52, i32 54, i32 56, i32 58, i32 60, i32 +62> + ret <32 x i8> %0 +} |