summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/avx-vpermil.ll
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2013-03-07 18:48:40 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2013-03-07 18:48:40 +0000
commit02c2ecf9f166522cc1c58dd484668c1cbacc0c6e (patch)
tree0721321259962df552b6c98dce098a5cda4a7a9f /test/CodeGen/X86/avx-vpermil.ll
parent784ae47413e1adf3b64ed5546f88b39ab52a9281 (diff)
downloadllvm-02c2ecf9f166522cc1c58dd484668c1cbacc0c6e.tar.gz
llvm-02c2ecf9f166522cc1c58dd484668c1cbacc0c6e.tar.bz2
llvm-02c2ecf9f166522cc1c58dd484668c1cbacc0c6e.tar.xz
X86: Fold EXTRACT_SUBVECTORs of a BUILD_VECTOR into a smaller BUILD_VECTOR.
That can usually be lowered efficiently and is common in sandybridge code. It would be nice to do this in DAGCombiner but we can't insert arbitrary BUILD_VECTORs this late. Fixes PR15462. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176634 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/avx-vpermil.ll')
-rw-r--r--test/CodeGen/X86/avx-vpermil.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CodeGen/X86/avx-vpermil.ll b/test/CodeGen/X86/avx-vpermil.ll
index cb904b9331..7f2f9d821d 100644
--- a/test/CodeGen/X86/avx-vpermil.ll
+++ b/test/CodeGen/X86/avx-vpermil.ll
@@ -45,8 +45,8 @@ entry:
ret <8 x float> %shuffle
}
-; CHECK: palignr
-; CHECK: palignr
+; CHECK: palignr $8
+; CHECK: psrldq $8
define <8 x float> @funcF(<8 x float> %a) nounwind uwtable readnone ssp {
entry:
%shuffle = shufflevector <8 x float> %a, <8 x float> zeroinitializer, <8 x i32> <i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9>