Lines Matching refs:lshr
1007 } else if (AP1 == AP2.lshr(Shift)) { in foldICmpShrConstConst()
1667 NewCmpCst = C1.lshr(*C3); in foldICmpAndShift()
1668 NewAndCst = C2.lshr(*C3); in foldICmpAndShift()
1677 AnyCmpCstBitsShiftedOut = NewCmpCst.lshr(*C3) != C1; in foldICmpAndShift()
2291 APInt ShiftedC = C.lshr(*ShiftAmt); in foldICmpShlConstant()
2295 C.lshr(*ShiftAmt).shl(*ShiftAmt) == C) { in foldICmpShlConstant()
2296 APInt ShiftedC = C.lshr(*ShiftAmt); in foldICmpShlConstant()
2305 APInt ShiftedC = (C - 1).lshr(*ShiftAmt) + 1; in foldICmpShlConstant()
2316 Constant *LShrC = ConstantInt::get(ShType, C.lshr(*ShiftAmt)); in foldICmpShlConstant()
2337 Value *And = Builder.CreateAnd(X, (~C).lshr(ShiftAmt->getZExtValue())); in foldICmpShlConstant()
2346 Builder.CreateAnd(X, (~(C - 1)).lshr(ShiftAmt->getZExtValue())); in foldICmpShlConstant()
2478 if (ShiftedC.lshr(ShAmtVal) == C) in foldICmpShrConstant()
2484 if ((ShiftedC + 1).lshr(ShAmtVal) == (C + 1)) in foldICmpShrConstant()
2498 (!IsAShr && C.shl(ShAmtVal).lshr(ShAmtVal) == C)) && in foldICmpShrConstant()
4180 const APInt AddCst = ICmpCst.lshr(1); in foldICmpWithTruncSignExtendedVal()