Home | History | Annotate | Download | only in SelectionDAG

Lines Matching refs:ShAmt

583       unsigned ShAmt = SA->getZExtValue();
587 if (ShAmt >= BitWidth)
590 // If this is ((X >>u C1) << ShAmt), see if we can simplify this into a
595 if (ShAmt && (NewMask & APInt::getLowBitsSet(BitWidth, ShAmt)) == 0) {
598 int Diff = ShAmt-C1;
612 if (SimplifyDemandedBits(InOp, NewMask.lshr(ShAmt),
622 if (ShAmt < InnerBits && NewMask.lshr(InnerBits) == 0 &&
625 if (!APInt(BitWidth, ShAmt).isIntN(ShTy.getSizeInBits()))
629 TLO.DAG.getConstant(ShAmt, ShTy));
646 unsigned ShAmt = SA->getZExtValue();
651 if (ShAmt >= BitWidth)
654 // If this is ((X << C1) >>u ShAmt), see if we can simplify this into a
659 if (ShAmt && (NewMask & APInt::getHighBitsSet(VTSize, ShAmt)) == 0) {
662 int Diff = ShAmt-C1;
676 if (SimplifyDemandedBits(InOp, (NewMask << ShAmt),
680 KnownZero = KnownZero.lshr(ShAmt);
681 KnownOne = KnownOne.lshr(ShAmt);
683 APInt HighBits = APInt::getHighBitsSet(BitWidth, ShAmt);
699 unsigned ShAmt = SA->getZExtValue();
702 if (ShAmt >= BitWidth)
705 APInt InDemandedMask = (NewMask << ShAmt);
709 APInt HighBits = APInt::getHighBitsSet(BitWidth, ShAmt);
717 KnownZero = KnownZero.lshr(ShAmt);
718 KnownOne = KnownOne.lshr(ShAmt);
721 APInt SignBit = APInt::getSignBit(BitWidth).lshr(ShAmt);
740 unsigned ShAmt = ExVT.getScalarType().getSizeInBits();
749 SDValue ShiftAmt = TLO.DAG.getConstant(BitWidth - ShAmt, ShiftAmtTy);
898 ConstantSDNode *ShAmt = dyn_cast<ConstantSDNode>(In.getOperand(1));
899 if (!ShAmt)
903 uint64_t ShVal = ShAmt->getZExtValue();
910 HighBits = HighBits.lshr(ShAmt->getZExtValue()).trunc(BitWidth);
912 if (ShAmt->getZExtValue() < BitWidth && !(HighBits & NewMask)) {
963 SDValue ShAmt = TLO.DAG.getConstant(ShVal, Op.getValueType());
966 Sign, ShAmt));
1097 const APInt &ShAmt
1100 ShAmt == Log2_32(N0.getValueType().getSizeInBits())) {
2450 unsigned ShAmt = d.countTrailingZeros();
2451 if (ShAmt) {
2453 SDValue Amt = DAG.getConstant(ShAmt, getShiftAmountTy(Op1.getValueType()));
2455 d = d.ashr(ShAmt);