| /freebsd/contrib/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/ |
| H A D | ARMAddressingModes.h | 655 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 D | AArch64AddressingModes.h | 368 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 D | DivisionByConstantInfo.cpp | 32 APInt T = SignedMin + (D.lshr(D.getBitWidth() - 1)); in get() 137 APInt ShiftedD = D.lshr(PreShift); in get()
|
| H A D | APFixedPoint.cpp | 133 Val = Val.lshr(1); in getMax() 435 .lshr(Scale) in toString()
|
| H A D | APInt.cpp | 640 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 D | HexagonGenExtract.cpp | 163 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 D | InstCombineSimplifyDemanded.cpp | 701 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 D | InstCombineShifts.cpp | 475 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 D | InstCombineCompares.cpp | 1036 } 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 D | MipsSEISelDAGToDAG.cpp | 1125 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 D | DemandedBits.cpp | 133 AB = AOut.lshr(ShiftAmt); in determineLiveOperandBits() 177 AB = AOut.lshr(ShiftAmt); in determineLiveOperandBits()
|
| H A D | HashRecognize.cpp | 143 return KnownBits::lshr(KnownL, KnownR); in computeBinOp() 487 CRCInit = CRCInit.lshr(1) ^ (CRCInit[0] ? GenPoly : APInt::getZero(BW)); in genSarwateTable()
|
| H A D | BlockFrequencyInfoImpl.cpp | 602 BlockCount = (BlockCount + EntryFreq.lshr(1)).udiv(EntryFreq); in getProfileCountFromFreq()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | InterleavedLoadCombinePass.cpp | 329 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 D | ConstantRange.h | 524 LLVM_ABI ConstantRange lshr(const ConstantRange &Other) const;
|
| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | ConstantRange.cpp | 392 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 D | APInt.h | 851 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 D | APSInt.h | 153 return IsUnsigned ? APSInt(lshr(Amt), true) : APSInt(ashr(Amt), false);
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/ |
| H A D | IntegralAP.h | 313 R->copy(A.getValue().lshr(ShiftAmount)); in shiftRight()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | KnownBits.h | 433 LLVM_ABI static KnownBits lshr(const KnownBits &LHS, const KnownBits &RHS,
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/CSKY/ |
| H A D | CSKYInstrInfoF1.td | 62 "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 D | arm_cde.td | 77 (seq (u32 (lshr $acc, (u64 32))):$acc_hi,
|
| H A D | arm_mve.td | 1234 (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 D | DwarfExpression.cpp | 247 API = API.lshr(8); in addConstantFP()
|
| /freebsd/contrib/llvm-project/lldb/source/Utility/ |
| H A D | Scalar.cpp | 436 m_integer = m_integer.lshr(rhs.m_integer); in ShiftRightLogical()
|