Home
last modified time | relevance | path

Searched refs:ashr (Results 1 – 25 of 40) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstantRange.cpp382 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 DConstantFold.cpp852 return ConstantInt::get(CI1->getContext(), C1V.ashr(C2V)); in ConstantFoldBinaryInstruction()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstantRange.h510 ConstantRange ashr(const ConstantRange &Other) const;
H A DVPIntrinsics.def176 // llvm.vp.ashr(x,y,mask,vlen)
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPInt.h807 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 DAPSInt.h152 return IsUnsigned ? APSInt(lshr(Amt), true) : APSInt(ashr(Amt), false);
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DGISelKnownBits.cpp435 Known = KnownBits::ashr(LHSKnown, RHSKnown); in computeKnownBitsImpl()
576 Known = KnownBits::ashr(KnownBits::shl(Known, ShiftKnown), ShiftKnown); in computeKnownBitsImpl()
H A DUtils.cpp684 return C1.ashr(C2); in ConstantFoldBinOp()
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DKnownBits.h411 static KnownBits ashr(const KnownBits &LHS, const KnownBits &RHS,
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/
H A DIntegralAP.h264 *R = IntegralAP(A.V.ashr(ShiftAmount)); in shiftRight()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/
H A DRISCVMatInt.cpp512 APInt Chunk = Val.ashr(ShiftVal).sextOrTrunc(PlatRegSize); in getIntMatCost()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp830 Known = KnownBits::ashr( in SimplifyDemandedUseBits()
1342 (BitMask1.ashr(ShrAmt) << ShlAmt); in simplifyShrShlDemandedBits()
1348 BitMask2.ashr(ShrAmt - ShlAmt); in simplifyShrShlDemandedBits()
H A DInstCombineCompares.cpp1002 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 DInstCombineShifts.cpp478 return I.isExact() && AC->eq(AC->shl(PosOffset).ashr(PosOffset)); in commonShiftTransforms()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/
H A DAArch64PostLegalizerCombiner.cpp183 APInt ShiftedConstValue = ConstValue.ashr(TrailingZeroes); in matchAArch64MulConstCombine()
/freebsd/contrib/llvm-project/lldb/source/Utility/
H A DScalar.cpp457 m_integer = m_integer.ashr(rhs.m_integer); in operator >>=()
/freebsd/contrib/llvm-project/llvm/lib/Target/XCore/
H A DXCoreInstrInfo.td456 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 DLLLexer.cpp864 INSTKEYWORD(shl, Shl); INSTKEYWORD(lshr, LShr); INSTKEYWORD(ashr, AShr); in LexIdentifier()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DKnownBits.cpp428 KnownBits KnownBits::ashr(const KnownBits &LHS, const KnownBits &RHS, in ashr() function in KnownBits
H A DAPInt.cpp3074 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 DExecution.cpp1218 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 DValueTracking.cpp1294 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 DLazyValueInfo.cpp1234 if ((New.ashr(*ShAmtC)) != RHS) in getValueFromICmpCondition()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonVectorCombine.cpp1633 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 DEmulateInstructionRISCV.cpp992 mul.ashr(64).trunc(64).getZExtValue()); in operator ()()

12