Home | History | Annotate | Download | only in InstCombine

Lines Matching refs:ShrAmt

819   unsigned ShrAmt = ShrOp1.getZExtValue();
829 BitMask1 = isLshr ? (BitMask1.lshr(ShrAmt) << ShlAmt) :
830 (BitMask1.ashr(ShrAmt) << ShlAmt);
832 if (ShrAmt <= ShlAmt) {
833 BitMask2 <<= (ShlAmt - ShrAmt);
835 BitMask2 = isLshr ? BitMask2.lshr(ShrAmt - ShlAmt):
836 BitMask2.ashr(ShrAmt - ShlAmt);
841 if (ShrAmt == ShlAmt)
848 if (ShrAmt < ShlAmt) {
849 Constant *Amt = ConstantInt::get(VarX->getType(), ShlAmt - ShrAmt);
855 Constant *Amt = ConstantInt::get(VarX->getType(), ShrAmt - ShlAmt);