Lines Matching refs:lshr
1008 } else if (AP1 == AP2.lshr(Shift)) { in foldICmpShrConstConst()
1684 NewCmpCst = C1.lshr(*C3); in foldICmpAndShift()
1685 NewAndCst = C2.lshr(*C3); in foldICmpAndShift()
1694 AnyCmpCstBitsShiftedOut = NewCmpCst.lshr(*C3) != C1; in foldICmpAndShift()
2351 APInt ShiftedC = C.lshr(*ShiftAmt); in foldICmpShlConstant()
2355 C.lshr(*ShiftAmt).shl(*ShiftAmt) == C) { in foldICmpShlConstant()
2356 APInt ShiftedC = C.lshr(*ShiftAmt); in foldICmpShlConstant()
2365 APInt ShiftedC = (C - 1).lshr(*ShiftAmt) + 1; in foldICmpShlConstant()
2376 Constant *LShrC = ConstantInt::get(ShType, C.lshr(*ShiftAmt)); in foldICmpShlConstant()
2397 Value *And = Builder.CreateAnd(X, (~C).lshr(ShiftAmt->getZExtValue())); in foldICmpShlConstant()
2406 Builder.CreateAnd(X, (~(C - 1)).lshr(ShiftAmt->getZExtValue())); in foldICmpShlConstant()
2569 if (ShiftedC.lshr(ShAmtVal) == C) in foldICmpShrConstant()
2575 if ((ShiftedC + 1).lshr(ShAmtVal) == (C + 1)) in foldICmpShrConstant()
2589 (!IsAShr && C.shl(ShAmtVal).lshr(ShAmtVal) == C)) && in foldICmpShrConstant()
4474 const APInt AddCst = ICmpCst.lshr(1); in foldICmpWithTruncSignExtendedVal()