Home
last modified time | relevance | path

Searched refs:lshr (Results 1 – 25 of 64) 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.cpp133 Val = Val.lshr(1); in getMax()
435 .lshr(Scale) in toString()
H A DAPInt.cpp640 return this->lshr(BitWidth - numBits); in getHiBits()
1147 return shl(rotateAmt) | lshr(BitWidth - rotateAmt); in rotl()
1160 return lshr(rotateAmt) | shl(BitWidth - rotateAmt); in rotr()
1977 APInt Res = lshr(1) * RHS; in umul_ov()
3110 return (C1 & C2) + (C1 ^ C2).lshr(1); in avgFloorU()
3120 return (C1 | C2) - (C1 ^ C2).lshr(1); in avgCeilU()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonGenExtract.cpp163 APInt A = APInt(BW, ~0ULL, true).lshr(SR).shl(SL); in INITIALIZE_PASS_DEPENDENCY()
169 APInt M = CM->getValue().lshr(SL); in INITIALIZE_PASS_DEPENDENCY()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp701 APInt DemandedMaskIn(DemandedMask.lshr(ShiftAmt)); in SimplifyDemandedUseBits()
786 X, ConstantInt::get(X->getType(), Factor->lshr(ShiftAmt))); in SimplifyDemandedUseBits()
1040 APInt DemandedMaskLHS(DemandedMask.lshr(ShiftAmt)); in SimplifyDemandedUseBits()
1070 RHSKnown.Zero.lshr(BitWidth - ShiftAmt); in SimplifyDemandedUseBits()
1072 RHSKnown.One.lshr(BitWidth - ShiftAmt); in SimplifyDemandedUseBits()
1345 BitMask1 = isLshr ? (BitMask1.lshr(ShrAmt) << ShlAmt) : in simplifyShrShlDemandedBits()
1351 BitMask2 = isLshr ? BitMask2.lshr(ShrAmt - ShlAmt): in simplifyShrShlDemandedBits()
1812 APInt SubUndef = PoisonElts2.lshr(OutIdx * Ratio).zextOrTrunc(Ratio); in SimplifyDemandedVectorElts()
H A DInstCombineShifts.cpp475 AC->eq(AC->lshr(PosOffset).shl(PosOffset)); in commonShiftTransforms()
477 return I.isExact() && AC->eq(AC->shl(PosOffset).lshr(PosOffset)); in commonShiftTransforms()
484 ? AC->lshr(PosOffset) in commonShiftTransforms()
1513 APInt MaskC = APInt::getAllOnes(BitWidth).lshr(ShAmtC); in visitLShr()
1543 APInt NewMulC = MulC->lshr(ShAmtC); in visitLShr()
H A DInstCombineCompares.cpp1036 } else if (AP1 == AP2.lshr(Shift)) { in foldICmpShrConstConst()
1720 NewCmpCst = C1.lshr(*C3); in foldICmpAndShift()
1721 NewAndCst = C2.lshr(*C3); in foldICmpAndShift()
1730 AnyCmpCstBitsShiftedOut = NewCmpCst.lshr(*C3) != C1; in foldICmpAndShift()
2402 APInt ShiftedC = C.lshr(*ShiftAmt); in foldICmpShlConstant()
2406 C.lshr(*ShiftAmt).shl(*ShiftAmt) == C) { in foldICmpShlConstant()
2407 APInt ShiftedC = C.lshr(*ShiftAmt); in foldICmpShlConstant()
2416 APInt ShiftedC = (C - 1).lshr(*ShiftAmt) + 1; in foldICmpShlConstant()
2427 Constant *LShrC = ConstantInt::get(ShType, C.lshr(*ShiftAmt)); in foldICmpShlConstant()
2448 Value *And = Builder.CreateAnd(X, (~C).lshr(ShiftAmt->getZExtValue())); in foldICmpShlConstant()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsSEISelDAGToDAG.cpp1125 const unsigned Hi = SplatValue.lshr(16).getLoBits(16).getZExtValue(); in trySelect()
1148 const unsigned Hi = SplatValue.lshr(16).getLoBits(16).getZExtValue(); in trySelect()
1197 const unsigned Hi = SplatValue.lshr(16).getLoBits(16).getZExtValue(); in trySelect()
1198 const unsigned Higher = SplatValue.lshr(32).getLoBits(16).getZExtValue(); in trySelect()
1199 const unsigned Highest = SplatValue.lshr(48).getLoBits(16).getZExtValue(); in trySelect()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DDemandedBits.cpp133 AB = AOut.lshr(ShiftAmt); in determineLiveOperandBits()
177 AB = AOut.lshr(ShiftAmt); in determineLiveOperandBits()
H A DHashRecognize.cpp143 return KnownBits::lshr(KnownL, KnownR); in computeBinOp()
487 CRCInit = CRCInit.lshr(1) ^ (CRCInit[0] ? GenPoly : APInt::getZero(BW)); in genSarwateTable()
H A DBlockFrequencyInfoImpl.cpp602 BlockCount = (BlockCount + EntryFreq.lshr(1)).udiv(EntryFreq); in getProfileCountFromFreq()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DInterleavedLoadCombinePass.cpp329 Polynomial &lshr(const APInt &C) { in lshr() function in __anon71941b1b0111::Polynomial
485 A = A.lshr(shiftAmt); in lshr()
932 Result.lshr(C->getValue()); in computePolynomialBinOp()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstantRange.h524 LLVM_ABI ConstantRange lshr(const ConstantRange &Other) const;
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstantRange.cpp392 APInt::getMaxValue(BitWidth).lshr(ShAmtUMax) + 1); in makeGuaranteedNoWrapRegion()
967 return lshr(Other); in binaryOp()
1793 ConstantRange::lshr(const ConstantRange &Other) const { in lshr() function in ConstantRange
1797 APInt max = getUnsignedMax().lshr(Other.getUnsignedMin()) + 1; in lshr()
1798 APInt min = getUnsignedMin().lshr(Other.getUnsignedMax()); in lshr()
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPInt.h851 APInt lshr(unsigned shiftAmt) const { in lshr() function
881 return RelativeShift > 0 ? lshr(RelativeShift) : shl(-RelativeShift); in relativeLShr()
920 APInt lshr(const APInt &ShiftAmt) const { in lshr() function
H A DAPSInt.h153 return IsUnsigned ? APSInt(lshr(Amt), true) : APSInt(ashr(Amt), false);
/freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/
H A DIntegralAP.h313 R->copy(A.getValue().lshr(ShiftAmount)); in shiftRight()
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DKnownBits.h433 LLVM_ABI static KnownBits lshr(const KnownBits &LHS, const KnownBits &RHS,
/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_cde.td77 (seq (u32 (lshr $acc, (u64 32))):$acc_hi,
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,
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DDwarfExpression.cpp247 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