OSDN Git Service

[X86][AVX] createVariablePermute - fix v2i64/v2f64 VPERMILPD index creation.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 9 Mar 2018 18:37:56 +0000 (18:37 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 9 Mar 2018 18:37:56 +0000 (18:37 +0000)
commitc805ab081518784362f9d691d6f7d079d971a9bc
treece7f350fe17140139f413c53f8d69949bc4032a3
parent9ae21b397da1eceb1851bdc8ad6e2364196982e0
[X86][AVX] createVariablePermute - fix v2i64/v2f64 VPERMILPD index creation.

The input indices vector will put the index in bit0, but VPERMILPD actually selects off bit1 - so we need to scale accordingly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@327159 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/var-permute-128.ll