Home
last modified time | relevance | path

Searched refs:countLeadingOnes (Results 1 – 17 of 17) sorted by relevance

/external/llvm/unittests/Support/
DMathExtrasTest.cpp144 TEST(MathExtras, countLeadingOnes) { in TEST() argument
147 EXPECT_EQ(31u - i, countLeadingOnes(0xFFFFFFFF ^ (1 << i))); in TEST()
151 EXPECT_EQ(63u - i, countLeadingOnes(0xFFFFFFFFFFFFFFFFULL ^ (1LL << i))); in TEST()
155 EXPECT_EQ(31u - i, countLeadingOnes(0xFFFFFFFF ^ (1 << i))); in TEST()
/external/llvm/unittests/ADT/
DAPIntTest.cpp29 EXPECT_EQ(126u, Minus3.countLeadingOnes()); in TEST()
34 EXPECT_EQ(128u, Minus1.countLeadingOnes()); in TEST()
48 EXPECT_EQ(32u, i33minus2.countLeadingOnes()); in TEST()
61 EXPECT_EQ(0u, i65.countLeadingOnes()); in TEST()
70 EXPECT_EQ(1u, i65minus.countLeadingOnes()); in TEST()
78 EXPECT_EQ(128u, u128max.countLeadingOnes()); in TEST()
87 EXPECT_EQ(0u, u64max.countLeadingOnes()); in TEST()
96 EXPECT_EQ(0u, zero.countLeadingOnes()); in TEST()
106 EXPECT_EQ(0u, one.countLeadingOnes()); in TEST()
/external/llvm/lib/Analysis/
DValueTracking.cpp312 unsigned LeadZ = std::max(KnownZero.countLeadingOnes() + in computeKnownBitsMul()
313 KnownZero2.countLeadingOnes(), in computeKnownBitsMul()
549 unsigned SignBits = KnownZeroTemp.countLeadingOnes(); in computeKnownBitsFromTrueCondition()
559 unsigned SignBits = KnownZeroTemp.countLeadingOnes(); in computeKnownBitsFromTrueCondition()
903 APInt::getHighBitsSet(BitWidth, RHSKnownZero.countLeadingOnes()); in computeKnownBitsFromAssume()
914 APInt::getHighBitsSet(BitWidth, RHSKnownZero.countLeadingOnes()+1); in computeKnownBitsFromAssume()
917 APInt::getHighBitsSet(BitWidth, RHSKnownZero.countLeadingOnes()); in computeKnownBitsFromAssume()
1113 unsigned LeadZ = KnownZero2.countLeadingOnes(); in computeKnownBits()
1306 unsigned Leaders = std::max(KnownZero.countLeadingOnes(), in computeKnownBits()
1307 KnownZero2.countLeadingOnes()); in computeKnownBits()
[all …]
DInstructionSimplify.cpp2301 unsigned ShiftAmount = CI2->getValue().countLeadingOnes() - 1; in SimplifyICmpInst()
/external/llvm/lib/Target/ARM/MCTargetDesc/
DARMUnwindOpAsm.cpp110 auto RangeLen = countLeadingOnes(Regs << (32 - RangeMSB)); in EmitVFPRegSave()
/external/llvm/include/llvm/ADT/
DAPInt.h1311 return BitWidth - countLeadingOnes() + 1; in getMinSignedBits()
1370 unsigned countLeadingOnes() const;
1375 return isNegative() ? countLeadingOnes() : countLeadingZeros(); in getNumSignBits()
/external/llvm/lib/Support/
DAPInt.cpp722 unsigned APInt::countLeadingOnes() const { in countLeadingOnes() function in APInt
724 return llvm::countLeadingOnes(VAL << (APINT_BITS_PER_WORD - BitWidth)); in countLeadingOnes()
735 unsigned Count = llvm::countLeadingOnes(pVal[i] << shift); in countLeadingOnes()
741 Count += llvm::countLeadingOnes(pVal[i]); in countLeadingOnes()
2075 Overflow = ShAmt.uge(countLeadingOnes()); in sshl_ov()
/external/llvm/include/llvm/Support/
DMathExtras.h387 std::size_t countLeadingOnes(T Value, ZeroBehavior ZB = ZB_Width) {
/external/llvm/lib/Target/AArch64/MCTargetDesc/
DAArch64AddressingModes.h246 unsigned CLO = countLeadingOnes(Imm); in processLogicalImmediate()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineSimplifyDemanded.cpp813 unsigned Leaders = KnownZero2.countLeadingOnes(); in SimplifyDemandedUseBits()
815 KnownZero2.countLeadingOnes()); in SimplifyDemandedUseBits()
DInstructionCombining.cpp2079 unsigned LeadingKnownZeros = KnownZero.countLeadingOnes(); in visitSwitchInst()
2080 unsigned LeadingKnownOnes = KnownOne.countLeadingOnes(); in visitSwitchInst()
2087 LeadingKnownOnes, C.getCaseValue()->getValue().countLeadingOnes()); in visitSwitchInst()
DInstCombineCompares.cpp1157 if ((KnownZero|KnownOne).countLeadingOnes() >= SrcBits-DstBits) { in visitICmpInstWithInstAndIntCst()
/external/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAG.cpp2021 unsigned LeadZ = std::max(KnownZero.countLeadingOnes() + in computeKnownBits()
2022 KnownZero2.countLeadingOnes(), in computeKnownBits()
2036 unsigned LeadZ = KnownZero2.countLeadingOnes(); in computeKnownBits()
2365 uint32_t Leaders = std::max(KnownZero.countLeadingOnes(), in computeKnownBits()
2366 KnownZero2.countLeadingOnes()); in computeKnownBits()
DSelectionDAGBuilder.cpp719 unsigned NumZeroBits = LOI->KnownZero.countLeadingOnes(); in getCopyFromRegs()
/external/llvm/lib/Target/R600/
DAMDGPUISelLowering.cpp2281 return (VT.getSizeInBits() - KnownZero.countLeadingOnes()) <= 24; in isU24()
/external/llvm/lib/Target/AArch64/
DAArch64ISelDAGToDAG.cpp1463 unsigned BitWide = 64 - countLeadingOnes(~(And_mask >> Srl_imm)); in isSeveralBitsExtractOpFromShr()
/external/llvm/lib/Target/X86/
DX86ISelLowering.cpp12865 if (Zeros.countLeadingOnes() < BitWidth - AndBitWidth) in LowerToBT()