/external/llvm/unittests/Support/ |
D | MathExtrasTest.cpp | 144 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/ |
D | APIntTest.cpp | 29 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/ |
D | ValueTracking.cpp | 312 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 …]
|
D | InstructionSimplify.cpp | 2301 unsigned ShiftAmount = CI2->getValue().countLeadingOnes() - 1; in SimplifyICmpInst()
|
/external/llvm/lib/Target/ARM/MCTargetDesc/ |
D | ARMUnwindOpAsm.cpp | 110 auto RangeLen = countLeadingOnes(Regs << (32 - RangeMSB)); in EmitVFPRegSave()
|
/external/llvm/include/llvm/ADT/ |
D | APInt.h | 1311 return BitWidth - countLeadingOnes() + 1; in getMinSignedBits() 1370 unsigned countLeadingOnes() const; 1375 return isNegative() ? countLeadingOnes() : countLeadingZeros(); in getNumSignBits()
|
/external/llvm/lib/Support/ |
D | APInt.cpp | 722 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/ |
D | MathExtras.h | 387 std::size_t countLeadingOnes(T Value, ZeroBehavior ZB = ZB_Width) {
|
/external/llvm/lib/Target/AArch64/MCTargetDesc/ |
D | AArch64AddressingModes.h | 246 unsigned CLO = countLeadingOnes(Imm); in processLogicalImmediate()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineSimplifyDemanded.cpp | 813 unsigned Leaders = KnownZero2.countLeadingOnes(); in SimplifyDemandedUseBits() 815 KnownZero2.countLeadingOnes()); in SimplifyDemandedUseBits()
|
D | InstructionCombining.cpp | 2079 unsigned LeadingKnownZeros = KnownZero.countLeadingOnes(); in visitSwitchInst() 2080 unsigned LeadingKnownOnes = KnownOne.countLeadingOnes(); in visitSwitchInst() 2087 LeadingKnownOnes, C.getCaseValue()->getValue().countLeadingOnes()); in visitSwitchInst()
|
D | InstCombineCompares.cpp | 1157 if ((KnownZero|KnownOne).countLeadingOnes() >= SrcBits-DstBits) { in visitICmpInstWithInstAndIntCst()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAG.cpp | 2021 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()
|
D | SelectionDAGBuilder.cpp | 719 unsigned NumZeroBits = LOI->KnownZero.countLeadingOnes(); in getCopyFromRegs()
|
/external/llvm/lib/Target/R600/ |
D | AMDGPUISelLowering.cpp | 2281 return (VT.getSizeInBits() - KnownZero.countLeadingOnes()) <= 24; in isU24()
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64ISelDAGToDAG.cpp | 1463 unsigned BitWide = 64 - countLeadingOnes(~(And_mask >> Srl_imm)); in isSeveralBitsExtractOpFromShr()
|
/external/llvm/lib/Target/X86/ |
D | X86ISelLowering.cpp | 12865 if (Zeros.countLeadingOnes() < BitWidth - AndBitWidth) in LowerToBT()
|