Home
last modified time | relevance | path

Searched refs:lshr (Results 1 – 25 of 60) sorted by relevance

123

/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMAddressingModes.h655 uint32_t Sign = Imm.lshr(15).getZExtValue() & 1; in getFP16Imm()
656 int32_t Exp = (Imm.lshr(10).getSExtValue() & 0x1f) - 15; // -14 to 15 in getFP16Imm()
693 uint32_t Sign = Imm.lshr(31).getZExtValue() & 1; in getFP32Imm()
694 int32_t Exp = (Imm.lshr(23).getSExtValue() & 0xff) - 127; // -126 to 127 in getFP32Imm()
721 uint64_t Sign = Imm.lshr(63).getZExtValue() & 1; in getFP64Imm()
722 int64_t Exp = (Imm.lshr(52).getSExtValue() & 0x7ff) - 1023; // -1022 to 1023 in getFP64Imm()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/MCTargetDesc/
H A DAArch64AddressingModes.h368 uint32_t Sign = Imm.lshr(15).getZExtValue() & 1; in getFP16Imm()
369 int32_t Exp = (Imm.lshr(10).getSExtValue() & 0x1f) - 15; // -14 to 15 in getFP16Imm()
394 uint32_t Sign = Imm.lshr(31).getZExtValue() & 1; in getFP32Imm()
395 int32_t Exp = (Imm.lshr(23).getSExtValue() & 0xff) - 127; // -126 to 127 in getFP32Imm()
422 uint64_t Sign = Imm.lshr(63).getZExtValue() & 1; in getFP64Imm()
423 int64_t Exp = (Imm.lshr(52).getSExtValue() & 0x7ff) - 1023; // -1022 to 1023 in getFP64Imm()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DDivisionByConstantInfo.cpp32 APInt T = SignedMin + (D.lshr(D.getBitWidth() - 1)); in get()
137 APInt ShiftedD = D.lshr(PreShift); in get()
H A DAPFixedPoint.cpp123 Val = Val.lshr(1); in getMax()
421 .lshr(Scale) in toString()
H A DAPInt.cpp609 return this->lshr(BitWidth - numBits); in getHiBits()
1117 return shl(rotateAmt) | lshr(BitWidth - rotateAmt); in rotl()
1130 return lshr(rotateAmt) | shl(BitWidth - rotateAmt); in rotr()
1947 APInt Res = lshr(1) * RHS; in umul_ov()
3079 return (C1 & C2) + (C1 ^ C2).lshr(1); in avgFloorU()
3089 return (C1 | C2) - (C1 ^ C2).lshr(1); in avgCeilU()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonGenExtract.cpp174 APInt A = APInt(BW, ~0ULL).lshr(SR).shl(SL); in INITIALIZE_PASS_DEPENDENCY()
180 APInt M = CM->getValue().lshr(SL); in INITIALIZE_PASS_DEPENDENCY()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp686 APInt DemandedMaskIn(DemandedMask.lshr(ShiftAmt)); in SimplifyDemandedUseBits()
1037 APInt DemandedMaskLHS(DemandedMask.lshr(ShiftAmt)); in SimplifyDemandedUseBits()
1064 RHSKnown.Zero.lshr(BitWidth - ShiftAmt); in SimplifyDemandedUseBits()
1066 RHSKnown.One.lshr(BitWidth - ShiftAmt); in SimplifyDemandedUseBits()
1341 BitMask1 = isLshr ? (BitMask1.lshr(ShrAmt) << ShlAmt) : in simplifyShrShlDemandedBits()
1347 BitMask2 = isLshr ? BitMask2.lshr(ShrAmt - ShlAmt): in simplifyShrShlDemandedBits()
1813 APInt SubUndef = PoisonElts2.lshr(OutIdx * Ratio).zextOrTrunc(Ratio); in SimplifyDemandedVectorElts()
H A DInstCombineShifts.cpp474 AC->eq(AC->lshr(PosOffset).shl(PosOffset)); in commonShiftTransforms()
476 return I.isExact() && AC->eq(AC->shl(PosOffset).lshr(PosOffset)); in commonShiftTransforms()
483 ? AC->lshr(PosOffset) in commonShiftTransforms()
1486 APInt MaskC = APInt::getAllOnes(BitWidth).lshr(ShAmtC); in visitLShr()
1516 APInt NewMulC = MulC->lshr(ShAmtC); in visitLShr()
H A DInstCombineCompares.cpp1008 } 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()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DDemandedBits.cpp135 AB = AOut.lshr(ShiftAmt); in determineLiveOperandBits()
179 AB = AOut.lshr(ShiftAmt); in determineLiveOperandBits()
H A DBlockFrequencyInfoImpl.cpp602 BlockCount = (BlockCount + EntryFreq.lshr(1)).udiv(EntryFreq); in getProfileCountFromFreq()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DInterleavedLoadCombinePass.cpp330 Polynomial &lshr(const APInt &C) { in lshr() function in __anon71941b1b0111::Polynomial
486 A = A.lshr(shiftAmt); in lshr()
933 Result.lshr(C->getValue()); in computePolynomialBinOp()
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsSEISelDAGToDAG.cpp1179 const unsigned Hi = SplatValue.lshr(16).getLoBits(16).getZExtValue(); in trySelect()
1202 const unsigned Hi = SplatValue.lshr(16).getLoBits(16).getZExtValue(); in trySelect()
1251 const unsigned Hi = SplatValue.lshr(16).getLoBits(16).getZExtValue(); in trySelect()
1252 const unsigned Higher = SplatValue.lshr(32).getLoBits(16).getZExtValue(); in trySelect()
1253 const unsigned Highest = SplatValue.lshr(48).getLoBits(16).getZExtValue(); in trySelect()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstantRange.h506 ConstantRange lshr(const ConstantRange &Other) const;
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPInt.h831 APInt lshr(unsigned shiftAmt) const { in lshr() function
861 return RelativeShift > 0 ? lshr(RelativeShift) : shl(-RelativeShift); in relativeLShr()
900 APInt lshr(const APInt &ShiftAmt) const { in lshr() function
H A DAPSInt.h152 return IsUnsigned ? APSInt(lshr(Amt), true) : APSInt(ashr(Amt), false);
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstantRange.cpp381 APInt::getMaxValue(BitWidth).lshr(ShAmtUMax) + 1); in makeGuaranteedNoWrapRegion()
956 return lshr(Other); in binaryOp()
1608 ConstantRange::lshr(const ConstantRange &Other) const { in lshr() function in ConstantRange
1612 APInt max = getUnsignedMax().lshr(Other.getUnsignedMin()) + 1; in lshr()
1613 APInt min = getUnsignedMin().lshr(Other.getUnsignedMax()); in lshr()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DGISelKnownBits.cpp141 return KnownBits::lshr(SrcOpKnown, OffsetKnown) & Mask; in extractBits()
444 Known = KnownBits::lshr(LHSKnown, RHSKnown); in computeKnownBitsImpl()
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DKnownBits.h406 static KnownBits lshr(const KnownBits &LHS, const KnownBits &RHS,
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/
H A DIntegralAP.h266 *R = IntegralAP(A.V.lshr(ShiftAmount)); in shiftRight()
/freebsd/contrib/llvm-project/llvm/lib/Target/CSKY/
H A DCSKYInstrInfoF1.td62 "return CurDAG->getTargetConstant(N->getValueAPF().bitcastToAPInt().lshr("#shift#").getLoBits("#width#"), SDLoc(N), MVT::i32);">;
65 "return CurDAG->getTargetConstant(N->getValueAPF().bitcastToAPInt().lshr("#shift#").getLoBits("#width#"), SDLoc(N), MVT::i16);">;
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A Darm_mve.td1234 (seq (u32 (lshr $value, (argtype 32))):$hi,
1276 (store (and 1, (lshr (xval $pair, 1), 29)), $carry),
1280 (store (and 1, (lshr (xval $pair, 1), 29)), $carry),
1286 (store (and 1, (lshr (xval $pair, 1), 29)), $carry),
1292 (store (and 1, (lshr (xval $pair, 1), 29)), $carry),
1397 (seq (u32 (lshr $a, (u64 32))):$hi,
H A Darm_cde.td77 (seq (u32 (lshr $acc, (u64 32))):$acc_hi,
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DDwarfExpression.cpp241 API = API.lshr(8); in addConstantFP()
/freebsd/contrib/llvm-project/lldb/source/Utility/
H A DScalar.cpp436 m_integer = m_integer.lshr(rhs.m_integer); in ShiftRightLogical()

123