Lines Matching defs:ShiftAmt
2167 unsigned ShiftAmt = Shift.getConstantOperandVal(1);
2168 if (ShiftAmt != 1 && ShiftAmt != 2 && ShiftAmt != 3)
2179 SDValue NewMask = DAG.getSignedConstant(Mask >> ShiftAmt, DL, VT);
2194 AM.Scale = 1 << ShiftAmt;
2240 unsigned ShiftAmt = Shift.getConstantOperandVal(1);
2252 unsigned ScaleDown = (64 - X.getSimpleValueType().getSizeInBits()) + ShiftAmt;
2291 SDValue NewSRLAmt = DAG.getConstant(ShiftAmt + AMShiftAmt, DL, MVT::i8);
2338 unsigned ShiftAmt = Shift.getConstantOperandVal(1);
2351 SDValue NewSRLAmt = DAG.getConstant(ShiftAmt + AMShiftAmt, DL, MVT::i8);
2413 uint64_t ShiftAmt = N.getConstantOperandVal(1);
2414 uint64_t ScaleAmt = 1ULL << ShiftAmt;
3926 auto canonicalizeShiftAmt = [&NBits, &NegateNBits](SDValue ShiftAmt,
3928 NBits = ShiftAmt;
4098 SDValue ShiftAmt = X.getOperand(1);
4101 assert(ShiftAmt.getValueType() == MVT::i8 &&
4106 SDValue OrigShiftAmt = ShiftAmt;
4107 ShiftAmt = CurDAG->getNode(ISD::ZERO_EXTEND, DL, MVT::i32, ShiftAmt);
4108 insertDAGNode(*CurDAG, OrigShiftAmt, ShiftAmt);
4111 Control = CurDAG->getNode(ISD::OR, DL, MVT::i32, Control, ShiftAmt);
4338 SDValue ShiftAmt = OrigShiftAmt;
4342 if (ShiftAmt->getOpcode() == ISD::TRUNCATE)
4343 ShiftAmt = ShiftAmt->getOperand(0);
4349 if (ShiftAmt->getOpcode() == ISD::ADD || ShiftAmt->getOpcode() == ISD::SUB ||
4350 ShiftAmt->getOpcode() == ISD::XOR) {
4351 SDValue Add0 = ShiftAmt->getOperand(0);
4352 SDValue Add1 = ShiftAmt->getOperand(1);
4360 } else if (ShiftAmt->getOpcode() != ISD::ADD && ShiftAmt.hasOneUse() &&
4369 if (ShiftAmt->getOpcode() == ISD::SUB && Add0C == nullptr)
4372 EVT OpVT = ShiftAmt.getValueType();
4381 } else if (ShiftAmt->getOpcode() == ISD::SUB && Add0C &&
4383 EVT SubVT = ShiftAmt.getValueType();
4387 else if (ShiftAmt.hasOneUse() && Size == 64 &&
6174 unsigned ShiftAmt;
6190 ShiftAmt = TrailingZeros;
6198 ShiftAmt = LeadingZeros;
6207 ShiftAmt = TrailingZeros;
6213 ShiftAmt = TrailingZeros;
6219 ShiftAmt = TrailingZeros;
6226 SDValue ShiftC = CurDAG->getTargetConstant(ShiftAmt, dl, MVT::i64);