/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | ConstantRange.cpp | 382 return getNonEmpty(APInt::getSignedMinValue(BitWidth).ashr(ShAmtUMax), in makeGuaranteedNoWrapRegion() 383 APInt::getSignedMaxValue(BitWidth).ashr(ShAmtUMax) + 1); in makeGuaranteedNoWrapRegion() 958 return ashr(Other); in binaryOp() 1618 ConstantRange::ashr(const ConstantRange &Other) const { in ashr() function in ConstantRange 1628 APInt PosMax = getSignedMax().ashr(Other.getUnsignedMin()) + 1; in ashr() 1635 APInt PosMin = getSignedMin().ashr(Other.getUnsignedMax()); in ashr() 1642 APInt NegMax = getSignedMax().ashr(Other.getUnsignedMax()) + 1; in ashr() 1649 APInt NegMin = getSignedMin().ashr(Other.getUnsignedMin()); in ashr()
|
H A D | ConstantFold.cpp | 852 return ConstantInt::get(CI1->getContext(), C1V.ashr(C2V)); in ConstantFoldBinaryInstruction()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | ConstantRange.h | 510 ConstantRange ashr(const ConstantRange &Other) const;
|
H A D | VPIntrinsics.def | 176 // llvm.vp.ashr(x,y,mask,vlen)
|
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
H A D | APInt.h | 807 APInt ashr(unsigned ShiftAmt) const { in ashr() function 871 return RelativeShift > 0 ? ashr(RelativeShift) : shl(-RelativeShift); in relativeAShr() 888 APInt ashr(const APInt &ShiftAmt) const { in ashr() function
|
H A D | APSInt.h | 152 return IsUnsigned ? APSInt(lshr(Amt), true) : APSInt(ashr(Amt), false);
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
H A D | GISelKnownBits.cpp | 435 Known = KnownBits::ashr(LHSKnown, RHSKnown); in computeKnownBitsImpl() 576 Known = KnownBits::ashr(KnownBits::shl(Known, ShiftKnown), ShiftKnown); in computeKnownBitsImpl()
|
H A D | Utils.cpp | 684 return C1.ashr(C2); in ConstantFoldBinOp()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | KnownBits.h | 411 static KnownBits ashr(const KnownBits &LHS, const KnownBits &RHS,
|
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/ |
H A D | IntegralAP.h | 264 *R = IntegralAP(A.V.ashr(ShiftAmount)); in shiftRight()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/ |
H A D | RISCVMatInt.cpp | 512 APInt Chunk = Val.ashr(ShiftVal).sextOrTrunc(PlatRegSize); in getIntMatCost()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineSimplifyDemanded.cpp | 830 Known = KnownBits::ashr( in SimplifyDemandedUseBits() 1342 (BitMask1.ashr(ShrAmt) << ShlAmt); in simplifyShrShlDemandedBits() 1348 BitMask2.ashr(ShrAmt - ShlAmt); in simplifyShrShlDemandedBits()
|
H A D | InstCombineCompares.cpp | 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() [all …]
|
H A D | InstCombineShifts.cpp | 478 return I.isExact() && AC->eq(AC->shl(PosOffset).ashr(PosOffset)); in commonShiftTransforms()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/ |
H A D | AArch64PostLegalizerCombiner.cpp | 183 APInt ShiftedConstValue = ConstValue.ashr(TrailingZeroes); in matchAArch64MulConstCombine()
|
/freebsd/contrib/llvm-project/lldb/source/Utility/ |
H A D | Scalar.cpp | 457 m_integer = m_integer.ashr(rhs.m_integer); in operator >>=()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/XCore/ |
H A D | XCoreInstrInfo.td | 456 defm ASHR : FL3R_L2RBITP<0b000101100, 0b100101100, "ashr", sra>; 1279 // ashr X, 32 is equivalent to ashr X, 31 on the XCore.
|
/freebsd/contrib/llvm-project/llvm/lib/AsmParser/ |
H A D | LLLexer.cpp | 864 INSTKEYWORD(shl, Shl); INSTKEYWORD(lshr, LShr); INSTKEYWORD(ashr, AShr); in LexIdentifier()
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | KnownBits.cpp | 428 KnownBits KnownBits::ashr(const KnownBits &LHS, const KnownBits &RHS, in ashr() function in KnownBits
|
H A D | APInt.cpp | 3074 return (C1 & C2) + (C1 ^ C2).ashr(1); in avgFloorS() 3084 return (C1 | C2) - (C1 ^ C2).ashr(1); in avgCeilS()
|
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Interpreter/ |
H A D | Execution.cpp | 1218 Result.IntVal = valueToShift.ashr(getShiftAmount(shiftAmount, valueToShift)); in visitAShr() 1225 Dest.IntVal = valueToShift.ashr(getShiftAmount(shiftAmount, valueToShift)); in visitAShr()
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | ValueTracking.cpp | 1294 return KnownBits::ashr(KnownVal, KnownAmt, ShAmtNonZero, Exact); in computeKnownBitsFromOperator() 2704 return Lhs.ashr(Rhs); in isNonZeroShift() 9372 Lower = APInt::getSignedMinValue(Width).ashr(*C); in setLimitsForBinOp() 9373 Upper = APInt::getSignedMaxValue(Width).ashr(*C) + 1; in setLimitsForBinOp() 9381 Upper = C->ashr(ShiftAmount) + 1; in setLimitsForBinOp() 9384 Lower = C->ashr(ShiftAmount); in setLimitsForBinOp()
|
H A D | LazyValueInfo.cpp | 1234 if ((New.ashr(*ShAmtC)) != RHS) in getValueFromICmpCondition()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
H A D | HexagonVectorCombine.cpp | 1633 if (NumToTest != 0 && Known.Zero.ashr(NumToTest).isAllOnes()) { in getNumSignificantBits() 1641 if (Known.Zero.ashr(Pow2 - 1).isAllOnes()) in getNumSignificantBits()
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/Instruction/RISCV/ |
H A D | EmulateInstructionRISCV.cpp | 992 mul.ashr(64).trunc(64).getZExtValue()); in operator ()()
|