Lines Matching refs:Shift
790 SDValue Shift, SDValue X, in FoldMaskAndShiftToExtract() argument
792 if (Shift.getOpcode() != ISD::SRL || in FoldMaskAndShiftToExtract()
793 !isa<ConstantSDNode>(Shift.getOperand(1)) || in FoldMaskAndShiftToExtract()
794 !Shift.hasOneUse()) in FoldMaskAndShiftToExtract()
797 int ScaleLog = 8 - Shift.getConstantOperandVal(1); in FoldMaskAndShiftToExtract()
833 SDValue Shift, SDValue X, in FoldMaskedShiftToScaledMask() argument
835 if (Shift.getOpcode() != ISD::SHL || in FoldMaskedShiftToScaledMask()
836 !isa<ConstantSDNode>(Shift.getOperand(1))) in FoldMaskedShiftToScaledMask()
842 if (!N.hasOneUse() || !Shift.hasOneUse()) in FoldMaskedShiftToScaledMask()
846 unsigned ShiftAmt = Shift.getConstantOperandVal(1); in FoldMaskedShiftToScaledMask()
854 SDValue NewShift = DAG.getNode(ISD::SHL, DL, VT, NewAnd, Shift.getOperand(1)); in FoldMaskedShiftToScaledMask()
900 SDValue Shift, SDValue X, in FoldMaskAndShiftToScale() argument
902 if (Shift.getOpcode() != ISD::SRL || !Shift.hasOneUse() || in FoldMaskAndShiftToScale()
903 !isa<ConstantSDNode>(Shift.getOperand(1))) in FoldMaskAndShiftToScale()
906 unsigned ShiftAmt = Shift.getConstantOperandVal(1); in FoldMaskAndShiftToScale()
1266 SDValue Shift = N.getOperand(0); in MatchAddressRecursively() local
1267 if (Shift.getOpcode() != ISD::SRL && Shift.getOpcode() != ISD::SHL) break; in MatchAddressRecursively()
1268 SDValue X = Shift.getOperand(0); in MatchAddressRecursively()
1279 if (!FoldMaskAndShiftToExtract(*CurDAG, N, Mask, Shift, X, AM)) in MatchAddressRecursively()
1283 if (!FoldMaskAndShiftToScale(*CurDAG, N, Mask, Shift, X, AM)) in MatchAddressRecursively()
1288 if (!FoldMaskedShiftToScaledMask(*CurDAG, N, Mask, Shift, X, AM)) in MatchAddressRecursively()