mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 07:34:33 +00:00
Emit target specific nodes for isPSHUFHWMask and isPSHUFLWMask
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113050 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4c827f5ae1
commit
bbfc31012b
@ -5471,11 +5471,19 @@ X86TargetLowering::LowerVECTOR_SHUFFLE(SDValue Op, SelectionDAG &DAG) const {
|
||||
// FIXME: pshufb, blends, shifts.
|
||||
if (VT.getVectorNumElements() == 2 ||
|
||||
ShuffleVectorSDNode::isSplatMask(&M[0], VT) ||
|
||||
isPSHUFHWMask(M, VT) ||
|
||||
isPSHUFLWMask(M, VT) ||
|
||||
isPALIGNRMask(M, VT, Subtarget->hasSSSE3()))
|
||||
return Op;
|
||||
|
||||
if (isPSHUFHWMask(M, VT))
|
||||
return getTargetShuffleNode(X86ISD::PSHUFHW, dl, VT, V1,
|
||||
X86::getShufflePSHUFHWImmediate(SVOp),
|
||||
DAG);
|
||||
|
||||
if (isPSHUFLWMask(M, VT))
|
||||
return getTargetShuffleNode(X86ISD::PSHUFLW, dl, VT, V1,
|
||||
X86::getShufflePSHUFLWImmediate(SVOp),
|
||||
DAG);
|
||||
|
||||
if (isSHUFPMask(M, VT)) {
|
||||
unsigned TargetMask = X86::getShuffleSHUFImmediate(SVOp);
|
||||
if (VT == MVT::v4f32 || VT == MVT::v4i32)
|
||||
|
Loading…
x
Reference in New Issue
Block a user