mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 02:52:53 +02:00
[X86] Fix the lower1BitShuffle code added in r369215 to correctly pass the widened vector to the KSHIFT node.
Not sure how to test this as we have tests that exercise this code, but nothing failed for the types not matching. Since all the k-registers use equivalent register classes everything just ends up working. llvm-svn: 369228
This commit is contained in:
parent
6120ffd771
commit
b738257b1e
@ -16654,7 +16654,7 @@ static SDValue lower1BitShuffle(const SDLoc &DL, ArrayRef<int> Mask,
|
||||
SDValue Res = DAG.getNode(ISD::INSERT_SUBVECTOR, DL, WideVT,
|
||||
DAG.getUNDEF(WideVT), V,
|
||||
DAG.getIntPtrConstant(0, DL));
|
||||
Res = DAG.getNode(Opcode, DL, WideVT, V,
|
||||
Res = DAG.getNode(Opcode, DL, WideVT, Res,
|
||||
DAG.getConstant(ShiftAmt, DL, MVT::i8));
|
||||
return DAG.getNode(ISD::EXTRACT_SUBVECTOR, DL, VT, Res,
|
||||
DAG.getIntPtrConstant(0, DL));
|
||||
|
Loading…
Reference in New Issue
Block a user