/external/llvm-project/llvm/unittests/ADT/ |
D | APIntTest.cpp | 42 EXPECT_EQ(126u, Minus3.countLeadingOnes()); in TEST() 47 EXPECT_EQ(128u, Minus1.countLeadingOnes()); in TEST() 58 EXPECT_EQ(32u, i33minus2.countLeadingOnes()); in TEST() 69 EXPECT_EQ(0u, i61.countLeadingOnes()); in TEST() 78 EXPECT_EQ(0u, i61.countLeadingOnes()); in TEST() 89 EXPECT_EQ(0u, i65.countLeadingOnes()); in TEST() 98 EXPECT_EQ(1u, i65minus.countLeadingOnes()); in TEST() 106 EXPECT_EQ(128u, u128max.countLeadingOnes()); in TEST() 115 EXPECT_EQ(0u, u64max.countLeadingOnes()); in TEST() 124 EXPECT_EQ(0u, zero.countLeadingOnes()); in TEST() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/ |
D | KnownBits.h | 172 return Zero.countLeadingOnes(); in countMinLeadingZeros() 177 return One.countLeadingOnes(); in countMinLeadingOnes()
|
/external/llvm/unittests/Support/ |
D | MathExtrasTest.cpp | 173 TEST(MathExtras, countLeadingOnes) { in TEST() argument 176 EXPECT_EQ(31u - i, countLeadingOnes(0xFFFFFFFF ^ (1 << i))); in TEST() 180 EXPECT_EQ(63u - i, countLeadingOnes(0xFFFFFFFFFFFFFFFFULL ^ (1LL << i))); in TEST() 184 EXPECT_EQ(31u - i, countLeadingOnes(0xFFFFFFFF ^ (1 << i))); in TEST()
|
/external/llvm/unittests/ADT/ |
D | APIntTest.cpp | 37 EXPECT_EQ(126u, Minus3.countLeadingOnes()); in TEST() 42 EXPECT_EQ(128u, Minus1.countLeadingOnes()); in TEST() 56 EXPECT_EQ(32u, i33minus2.countLeadingOnes()); in TEST() 69 EXPECT_EQ(0u, i65.countLeadingOnes()); in TEST() 78 EXPECT_EQ(1u, i65minus.countLeadingOnes()); in TEST() 86 EXPECT_EQ(128u, u128max.countLeadingOnes()); in TEST() 95 EXPECT_EQ(0u, u64max.countLeadingOnes()); in TEST() 104 EXPECT_EQ(0u, zero.countLeadingOnes()); in TEST() 114 EXPECT_EQ(0u, one.countLeadingOnes()); in TEST()
|
/external/llvm-project/llvm/include/llvm/Support/ |
D | KnownBits.h | 209 return Zero.countLeadingOnes(); in countMinLeadingZeros() 214 return One.countLeadingOnes(); in countMinLeadingOnes()
|
/external/llvm-project/llvm/unittests/Support/ |
D | MathExtrasTest.cpp | 225 TEST(MathExtras, countLeadingOnes) { in TEST() argument 228 EXPECT_EQ(31u - i, countLeadingOnes(0xFFFFFFFF ^ (1 << i))); in TEST() 232 EXPECT_EQ(63u - i, countLeadingOnes(0xFFFFFFFFFFFFFFFFULL ^ (1LL << i))); in TEST() 236 EXPECT_EQ(31u - i, countLeadingOnes(0xFFFFFFFF ^ (1 << i))); in TEST()
|
/external/llvm/lib/Target/ARM/MCTargetDesc/ |
D | ARMUnwindOpAsm.cpp | 110 auto RangeLen = countLeadingOnes(Regs << (32 - RangeMSB)); in EmitVFPRegSave()
|
/external/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/ |
D | ARMUnwindOpAsm.cpp | 111 auto RangeLen = countLeadingOnes(Regs << (32 - RangeMSB)); in EmitVFPRegSave()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/MCTargetDesc/ |
D | ARMUnwindOpAsm.cpp | 111 auto RangeLen = countLeadingOnes(Regs << (32 - RangeMSB)); in EmitVFPRegSave()
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/ |
D | APInt.h | 1611 return BitWidth - countLeadingOnes() + 1; in getMinSignedBits() 1669 unsigned countLeadingOnes() const { in countLeadingOnes() function 1671 return llvm::countLeadingOnes(U.VAL << (APINT_BITS_PER_WORD - BitWidth)); in countLeadingOnes() 1678 return isNegative() ? countLeadingOnes() : countLeadingZeros(); in getNumSignBits()
|
D | SmallBitVector.h | 267 return NumBaseBits - countLeadingOnes(Bits) - 1; in find_last_unset()
|
/external/llvm/include/llvm/ADT/ |
D | APInt.h | 1324 return BitWidth - countLeadingOnes() + 1; in getMinSignedBits() 1383 unsigned countLeadingOnes() const; 1388 return isNegative() ? countLeadingOnes() : countLeadingZeros(); in getNumSignBits()
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/ |
D | APInt.h | 1300 return BitWidth - countLeadingOnes() + 1; in getMinSignedBits() 1359 unsigned countLeadingOnes() const; 1364 return isNegative() ? countLeadingOnes() : countLeadingZeros(); in getNumSignBits()
|
/external/llvm/lib/Analysis/ |
D | ValueTracking.cpp | 354 unsigned LeadZ = std::max(KnownZero.countLeadingOnes() + in computeKnownBitsMul() 355 KnownZero2.countLeadingOnes(), in computeKnownBitsMul() 763 APInt::getHighBitsSet(BitWidth, RHSKnownZero.countLeadingOnes()); in computeKnownBitsFromAssume() 775 APInt::getHighBitsSet(BitWidth, RHSKnownZero.countLeadingOnes()+1); in computeKnownBitsFromAssume() 778 APInt::getHighBitsSet(BitWidth, RHSKnownZero.countLeadingOnes()); in computeKnownBitsFromAssume() 940 unsigned LeadZ = KnownZero2.countLeadingOnes(); in computeKnownBitsFromOperator() 1138 unsigned Leaders = std::max(KnownZero.countLeadingOnes(), in computeKnownBitsFromOperator() 1139 KnownZero2.countLeadingOnes()); in computeKnownBitsFromOperator() 2166 return std::max(FirstAnswer, KnownZero.countLeadingOnes()); in ComputeNumSignBits() 2169 return std::max(FirstAnswer, KnownOne.countLeadingOnes()); in ComputeNumSignBits() [all …]
|
/external/llvm-project/llvm/lib/Target/VE/ |
D | VE.h | 358 return countLeadingOnes(Val); // (m)1 in val2MImm()
|
/external/llvm-project/llvm/include/llvm/ADT/ |
D | APInt.h | 1680 unsigned countLeadingOnes() const { 1682 return llvm::countLeadingOnes(U.VAL << (APINT_BITS_PER_WORD - BitWidth)); 1689 return isNegative() ? countLeadingOnes() : countLeadingZeros();
|
D | SmallBitVector.h | 267 return NumBaseBits - countLeadingOnes(Bits) - 1; in find_last_unset()
|
/external/swiftshader/third_party/llvm-subzero/lib/Support/ |
D | APInt.cpp | 676 unsigned APInt::countLeadingOnes() const { in countLeadingOnes() function in APInt 678 return llvm::countLeadingOnes(VAL << (APINT_BITS_PER_WORD - BitWidth)); in countLeadingOnes() 689 unsigned Count = llvm::countLeadingOnes(pVal[i] << shift); in countLeadingOnes() 695 Count += llvm::countLeadingOnes(pVal[i]); in countLeadingOnes() 2043 Overflow = ShAmt.uge(countLeadingOnes()); in sshl_ov()
|
/external/llvm/lib/Support/ |
D | APInt.cpp | 698 unsigned APInt::countLeadingOnes() const { in countLeadingOnes() function in APInt 700 return llvm::countLeadingOnes(VAL << (APINT_BITS_PER_WORD - BitWidth)); in countLeadingOnes() 711 unsigned Count = llvm::countLeadingOnes(pVal[i] << shift); in countLeadingOnes() 717 Count += llvm::countLeadingOnes(pVal[i]); in countLeadingOnes() 2069 Overflow = ShAmt.uge(countLeadingOnes()); in sshl_ov()
|
/external/llvm-project/llvm/lib/Support/ |
D | KnownBits.cpp | 124 unsigned N = (Zero | Val).countLeadingOnes(); in makeGE()
|
/external/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
D | GISelKnownBits.cpp | 590 return std::max(FirstAnswer, Mask.countLeadingOnes()); in computeNumSignBits()
|
/external/llvm/include/llvm/Support/ |
D | MathExtras.h | 414 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 | 728 unsigned Leaders = KnownZero2.countLeadingOnes(); in SimplifyDemandedUseBits() 730 KnownZero2.countLeadingOnes()); in SimplifyDemandedUseBits()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/MCTargetDesc/ |
D | AArch64AddressingModes.h | 247 unsigned CLO = countLeadingOnes(Imm); in processLogicalImmediate()
|