diff options
| author | Craig Topper <craig.topper@gmail.com> | 2012-05-04 04:44:49 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@gmail.com> | 2012-05-04 04:44:49 +0000 |
| commit | 42f21823662b8a1842463bc8a0ef18f5a1652ae7 (patch) | |
| tree | 9266f58c66ba3d851be0c105e45472ec04259c6a /llvm/test/CodeGen | |
| parent | fa0ebcd1b02bbfe4cc49088078ae6820a3c02982 (diff) | |
| download | bcm5719-llvm-42f21823662b8a1842463bc8a0ef18f5a1652ae7.tar.gz bcm5719-llvm-42f21823662b8a1842463bc8a0ef18f5a1652ae7.zip | |
Allow v16i16 and v32i8 shuffles to be rewritten as narrower shuffles.
llvm-svn: 156156
Diffstat (limited to 'llvm/test/CodeGen')
| -rw-r--r-- | llvm/test/CodeGen/X86/avx-shuffle.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/avx-shuffle.ll b/llvm/test/CodeGen/X86/avx-shuffle.ll index 16c447be172..e341aec94c1 100644 --- a/llvm/test/CodeGen/X86/avx-shuffle.ll +++ b/llvm/test/CodeGen/X86/avx-shuffle.ll @@ -202,3 +202,11 @@ define <4 x i64> @blend4(<4 x i64> %a, <4 x i64> %b) nounwind alwaysinline { %t = shufflevector <4 x i64> %a, <4 x i64> %b, <4 x i32> <i32 0, i32 1, i32 2, i32 7> ret <4 x i64> %t } + +; CHECK: narrow +; CHECK: vpermilps +; CHECK: ret +define <16 x i16> @narrow(<16 x i16> %a) nounwind alwaysinline { + %t = shufflevector <16 x i16> %a, <16 x i16> undef, <16 x i32> <i32 2, i32 3, i32 undef, i32 1, i32 6, i32 7, i32 4, i32 5, i32 10, i32 11, i32 8, i32 undef, i32 14, i32 15, i32 undef, i32 undef> + ret <16 x i16> %t +} |

