Lines Matching refs:ashr
1002 if (IsAShr && AP1 == AP2.ashr(Shift)) { in foldICmpShrConstConst()
1703 AnyCmpCstBitsShiftedOut = NewCmpCst.ashr(*C3) != C1; in foldICmpAndShift()
1704 if (NewAndCst.ashr(*C3) != C2) in foldICmpAndShift()
2326 APInt ShiftedC = C.ashr(*ShiftAmt); in foldICmpShlConstant()
2330 C.ashr(*ShiftAmt).shl(*ShiftAmt) == C) { in foldICmpShlConstant()
2331 APInt ShiftedC = C.ashr(*ShiftAmt); in foldICmpShlConstant()
2340 APInt ShiftedC = (C - 1).ashr(*ShiftAmt) + 1; in foldICmpShlConstant()
2443 ConstantInt::get(TruncTy, RHSC.ashr(*ShiftAmt).trunc(TypeBits - Amt)); in foldICmpShlConstant()
2530 if (ShiftedC.ashr(ShAmtVal) == C) in foldICmpShrConstant()
2537 (ShiftedC + 1).ashr(ShAmtVal) == (C + 1)) in foldICmpShrConstant()
2545 if ((ShiftedC + 1).ashr(ShAmtVal) == (C + 1) || in foldICmpShrConstant()
2588 assert(((IsAShr && C.shl(ShAmtVal).ashr(ShAmtVal) == C) || in foldICmpShrConstant()