Lines Matching refs:ShAmt
661 unsigned ShAmt = SA->getZExtValue(); in SimplifyDemandedBits() local
665 if (ShAmt >= BitWidth) in SimplifyDemandedBits()
673 if (ShAmt && (NewMask & APInt::getLowBitsSet(BitWidth, ShAmt)) == 0) { in SimplifyDemandedBits()
676 int Diff = ShAmt-C1; in SimplifyDemandedBits()
690 if (SimplifyDemandedBits(InOp, NewMask.lshr(ShAmt), in SimplifyDemandedBits()
700 if (ShAmt < InnerBits && NewMask.lshr(InnerBits) == 0 && in SimplifyDemandedBits()
703 if (!APInt(BitWidth, ShAmt).isIntN(ShTy.getSizeInBits())) in SimplifyDemandedBits()
707 TLO.DAG.getConstant(ShAmt, dl, ShTy)); in SimplifyDemandedBits()
724 if (InnerShAmt < ShAmt && in SimplifyDemandedBits()
726 NewMask.lshr(InnerBits - InnerShAmt + ShAmt) == 0 && in SimplifyDemandedBits()
727 NewMask.trunc(ShAmt) == 0) { in SimplifyDemandedBits()
729 TLO.DAG.getConstant(ShAmt - InnerShAmt, dl, in SimplifyDemandedBits()
749 unsigned ShAmt = SA->getZExtValue(); in SimplifyDemandedBits() local
754 if (ShAmt >= BitWidth) in SimplifyDemandedBits()
757 APInt InDemandedMask = (NewMask << ShAmt); in SimplifyDemandedBits()
762 InDemandedMask |= APInt::getLowBitsSet(BitWidth, ShAmt); in SimplifyDemandedBits()
769 if (ShAmt && (NewMask & APInt::getHighBitsSet(VTSize, ShAmt)) == 0) { in SimplifyDemandedBits()
772 int Diff = ShAmt-C1; in SimplifyDemandedBits()
790 KnownZero = KnownZero.lshr(ShAmt); in SimplifyDemandedBits()
791 KnownOne = KnownOne.lshr(ShAmt); in SimplifyDemandedBits()
793 APInt HighBits = APInt::getHighBitsSet(BitWidth, ShAmt); in SimplifyDemandedBits()
809 unsigned ShAmt = SA->getZExtValue(); in SimplifyDemandedBits() local
812 if (ShAmt >= BitWidth) in SimplifyDemandedBits()
815 APInt InDemandedMask = (NewMask << ShAmt); in SimplifyDemandedBits()
820 InDemandedMask |= APInt::getLowBitsSet(BitWidth, ShAmt); in SimplifyDemandedBits()
824 APInt HighBits = APInt::getHighBitsSet(BitWidth, ShAmt); in SimplifyDemandedBits()
832 KnownZero = KnownZero.lshr(ShAmt); in SimplifyDemandedBits()
833 KnownOne = KnownOne.lshr(ShAmt); in SimplifyDemandedBits()
836 APInt SignBit = APInt::getSignBit(BitWidth).lshr(ShAmt); in SimplifyDemandedBits()
869 unsigned ShAmt = ExVT.getScalarType().getSizeInBits(); in SimplifyDemandedBits() local
873 TLO.DAG.ComputeNumSignBits(InOp) >= VTBits-ShAmt+1; in SimplifyDemandedBits()
883 SDValue ShiftAmt = TLO.DAG.getConstant(BitWidth - ShAmt, dl, in SimplifyDemandedBits()
1060 ConstantSDNode *ShAmt = dyn_cast<ConstantSDNode>(In.getOperand(1)); in SimplifyDemandedBits() local
1061 if (!ShAmt) in SimplifyDemandedBits()
1065 uint64_t ShVal = ShAmt->getZExtValue(); in SimplifyDemandedBits()
1072 HighBits = HighBits.lshr(ShAmt->getZExtValue()).trunc(BitWidth); in SimplifyDemandedBits()
1074 if (ShAmt->getZExtValue() < BitWidth && !(HighBits & NewMask)) { in SimplifyDemandedBits()
1127 SDValue ShAmt = TLO.DAG.getConstant(ShVal, dl, Op.getValueType()); in SimplifyDemandedBits() local
1130 Sign, ShAmt)); in SimplifyDemandedBits()
1380 const APInt &ShAmt in SimplifySetCC() local
1383 ShAmt == Log2_32(N0.getValueType().getSizeInBits())) { in SimplifySetCC()
2793 unsigned ShAmt = d.countTrailingZeros(); in BuildExactSDIV() local
2794 if (ShAmt) { in BuildExactSDIV()
2797 DAG.getConstant(ShAmt, dl, TLI.getShiftAmountTy(Op1.getValueType(), in BuildExactSDIV()
2803 d = d.ashr(ShAmt); in BuildExactSDIV()