@@ -5668,39 +5668,39 @@ LowerVECTOR_SHUFFLEtoBlend(ShuffleVectorSDNode *SVOp,
5668
5668
// Check the mask for BLEND and build the value.
5669
5669
unsigned MaskValue = 0;
5670
5670
// There are 2 lanes if (NumElems > 8), and 1 lane otherwise.
5671
- unsigned NumLanes = (NumElems-1)/8 + 1;
5671
+ unsigned NumLanes = (NumElems-1)/8 + 1;
5672
5672
unsigned NumElemsInLane = NumElems / NumLanes;
5673
5673
5674
5674
// Blend for v16i16 should be symetric for the both lanes.
5675
5675
for (unsigned i = 0; i < NumElemsInLane; ++i) {
5676
5676
5677
- int SndLaneEltIdx = (NumLanes == 2) ?
5677
+ int SndLaneEltIdx = (NumLanes == 2) ?
5678
5678
SVOp->getMaskElt(i + NumElemsInLane) : -1;
5679
5679
int EltIdx = SVOp->getMaskElt(i);
5680
5680
5681
- if ((EltIdx == -1 || EltIdx == (int)i) &&
5681
+ if ((EltIdx == -1 || EltIdx == (int)i) &&
5682
5682
(SndLaneEltIdx == -1 || SndLaneEltIdx == (int)(i + NumElemsInLane)))
5683
5683
continue;
5684
5684
5685
- if (((unsigned)EltIdx == (i + NumElems)) &&
5686
- (SndLaneEltIdx == -1 ||
5685
+ if (((unsigned)EltIdx == (i + NumElems)) &&
5686
+ (SndLaneEltIdx == -1 ||
5687
5687
(unsigned)SndLaneEltIdx == i + NumElems + NumElemsInLane))
5688
5688
MaskValue |= (1<<i);
5689
- else
5689
+ else
5690
5690
return SDValue();
5691
5691
}
5692
5692
5693
5693
// Convert i32 vectors to floating point if it is not AVX2.
5694
5694
// AVX2 introduced VPBLENDD instruction for 128 and 256-bit vectors.
5695
5695
EVT BlendVT = VT;
5696
5696
if (EltVT == MVT::i64 || (EltVT == MVT::i32 && !Subtarget->hasInt256())) {
5697
- BlendVT = EVT::getVectorVT(*DAG.getContext(),
5698
- EVT::getFloatingPointVT(EltVT.getSizeInBits()),
5697
+ BlendVT = EVT::getVectorVT(*DAG.getContext(),
5698
+ EVT::getFloatingPointVT(EltVT.getSizeInBits()),
5699
5699
NumElems);
5700
5700
V1 = DAG.getNode(ISD::BITCAST, dl, VT, V1);
5701
5701
V2 = DAG.getNode(ISD::BITCAST, dl, VT, V2);
5702
5702
}
5703
-
5703
+
5704
5704
SDValue Ret = DAG.getNode(X86ISD::BLENDI, dl, BlendVT, V1, V2,
5705
5705
DAG.getConstant(MaskValue, MVT::i32));
5706
5706
return DAG.getNode(ISD::BITCAST, dl, VT, Ret);
0 commit comments