Lines Matching refs:ShAmt
607 unsigned ShAmt = SA->getZExtValue(); in SimplifyDemandedBits() local
611 if (ShAmt >= BitWidth) in SimplifyDemandedBits()
619 if (ShAmt && (NewMask & APInt::getLowBitsSet(BitWidth, ShAmt)) == 0) { in SimplifyDemandedBits()
622 int Diff = ShAmt-C1; in SimplifyDemandedBits()
636 if (SimplifyDemandedBits(InOp, NewMask.lshr(ShAmt), in SimplifyDemandedBits()
646 if (ShAmt < InnerBits && NewMask.lshr(InnerBits) == 0 && in SimplifyDemandedBits()
649 if (!APInt(BitWidth, ShAmt).isIntN(ShTy.getSizeInBits())) in SimplifyDemandedBits()
653 TLO.DAG.getConstant(ShAmt, ShTy)); in SimplifyDemandedBits()
670 if (InnerShAmt < ShAmt && in SimplifyDemandedBits()
672 NewMask.lshr(InnerBits - InnerShAmt + ShAmt) == 0 && in SimplifyDemandedBits()
673 NewMask.trunc(ShAmt) == 0) { in SimplifyDemandedBits()
675 TLO.DAG.getConstant(ShAmt - InnerShAmt, in SimplifyDemandedBits()
695 unsigned ShAmt = SA->getZExtValue(); in SimplifyDemandedBits() local
700 if (ShAmt >= BitWidth) in SimplifyDemandedBits()
708 if (ShAmt && (NewMask & APInt::getHighBitsSet(VTSize, ShAmt)) == 0) { in SimplifyDemandedBits()
711 int Diff = ShAmt-C1; in SimplifyDemandedBits()
725 if (SimplifyDemandedBits(InOp, (NewMask << ShAmt), in SimplifyDemandedBits()
729 KnownZero = KnownZero.lshr(ShAmt); in SimplifyDemandedBits()
730 KnownOne = KnownOne.lshr(ShAmt); in SimplifyDemandedBits()
732 APInt HighBits = APInt::getHighBitsSet(BitWidth, ShAmt); in SimplifyDemandedBits()
748 unsigned ShAmt = SA->getZExtValue(); in SimplifyDemandedBits() local
751 if (ShAmt >= BitWidth) in SimplifyDemandedBits()
754 APInt InDemandedMask = (NewMask << ShAmt); in SimplifyDemandedBits()
758 APInt HighBits = APInt::getHighBitsSet(BitWidth, ShAmt); in SimplifyDemandedBits()
766 KnownZero = KnownZero.lshr(ShAmt); in SimplifyDemandedBits()
767 KnownOne = KnownOne.lshr(ShAmt); in SimplifyDemandedBits()
770 APInt SignBit = APInt::getSignBit(BitWidth).lshr(ShAmt); in SimplifyDemandedBits()
800 unsigned ShAmt = ExVT.getScalarType().getSizeInBits(); in SimplifyDemandedBits() local
804 TLO.DAG.ComputeNumSignBits(InOp) >= VTBits-ShAmt+1; in SimplifyDemandedBits()
814 SDValue ShiftAmt = TLO.DAG.getConstant(BitWidth - ShAmt, ShiftAmtTy); in SimplifyDemandedBits()
990 ConstantSDNode *ShAmt = dyn_cast<ConstantSDNode>(In.getOperand(1)); in SimplifyDemandedBits() local
991 if (!ShAmt) in SimplifyDemandedBits()
995 uint64_t ShVal = ShAmt->getZExtValue(); in SimplifyDemandedBits()
1002 HighBits = HighBits.lshr(ShAmt->getZExtValue()).trunc(BitWidth); in SimplifyDemandedBits()
1004 if (ShAmt->getZExtValue() < BitWidth && !(HighBits & NewMask)) { in SimplifyDemandedBits()
1055 SDValue ShAmt = TLO.DAG.getConstant(ShVal, Op.getValueType()); in SimplifyDemandedBits() local
1058 Sign, ShAmt)); in SimplifyDemandedBits()
1252 const APInt &ShAmt in SimplifySetCC() local
1255 ShAmt == Log2_32(N0.getValueType().getSizeInBits())) { in SimplifySetCC()
2649 unsigned ShAmt = d.countTrailingZeros(); in BuildExactSDIV() local
2650 if (ShAmt) { in BuildExactSDIV()
2652 SDValue Amt = DAG.getConstant(ShAmt, getShiftAmountTy(Op1.getValueType())); in BuildExactSDIV()
2655 d = d.ashr(ShAmt); in BuildExactSDIV()