diff options
| author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2016-07-14 13:28:43 +0000 |
|---|---|---|
| committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2016-07-14 13:28:43 +0000 |
| commit | 3ecb6bdd5fce6a5f50ce86477ed34b973c763250 (patch) | |
| tree | 421ca437e636fcd47c793af6541c3db0461ade9e /llvm/test/CodeGen/X86/vector-shuffle-256-v8.ll | |
| parent | 46fe6550ac395447083d51e9ef3e35bfac153df2 (diff) | |
| download | bcm5719-llvm-3ecb6bdd5fce6a5f50ce86477ed34b973c763250.tar.gz bcm5719-llvm-3ecb6bdd5fce6a5f50ce86477ed34b973c763250.zip | |
[X86][AVX2] Allow VPERMPD/VPERMQ shuffles to call combineShuffle
This improves the situation discussed in D19228 where we were forcing VPERMPD/VPERMQ where VPERM2F128/VPERM2I128 would have been better.
llvm-svn: 275411
Diffstat (limited to 'llvm/test/CodeGen/X86/vector-shuffle-256-v8.ll')
| -rw-r--r-- | llvm/test/CodeGen/X86/vector-shuffle-256-v8.ll | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/X86/vector-shuffle-256-v8.ll b/llvm/test/CodeGen/X86/vector-shuffle-256-v8.ll index f9448d9cf96..cede0a95bb9 100644 --- a/llvm/test/CodeGen/X86/vector-shuffle-256-v8.ll +++ b/llvm/test/CodeGen/X86/vector-shuffle-256-v8.ll @@ -688,7 +688,7 @@ define <8 x float> @shuffle_v8f32_32103210(<8 x float> %a, <8 x float> %b) { ; AVX2-LABEL: shuffle_v8f32_32103210: ; AVX2: # BB#0: ; AVX2-NEXT: vpermilps {{.*#+}} xmm0 = xmm0[3,2,1,0] -; AVX2-NEXT: vpermpd {{.*#+}} ymm0 = ymm0[0,1,0,1] +; AVX2-NEXT: vperm2f128 {{.*#+}} ymm0 = ymm0[0,1,0,1] ; AVX2-NEXT: retq %shuffle = shufflevector <8 x float> %a, <8 x float> %b, <8 x i32> <i32 3, i32 2, i32 1, i32 0, i32 3, i32 2, i32 1, i32 0> ret <8 x float> %shuffle @@ -1770,7 +1770,7 @@ define <8 x i32> @shuffle_v8i32_32103210(<8 x i32> %a, <8 x i32> %b) { ; AVX2-LABEL: shuffle_v8i32_32103210: ; AVX2: # BB#0: ; AVX2-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[3,2,1,0] -; AVX2-NEXT: vpermq {{.*#+}} ymm0 = ymm0[0,1,0,1] +; AVX2-NEXT: vperm2i128 {{.*#+}} ymm0 = ymm0[0,1,0,1] ; AVX2-NEXT: retq %shuffle = shufflevector <8 x i32> %a, <8 x i32> %b, <8 x i32> <i32 3, i32 2, i32 1, i32 0, i32 3, i32 2, i32 1, i32 0> ret <8 x i32> %shuffle |

