Searched refs:countLeadingOnes (Results 1 - 25 of 26) sorted by relevance

12

/external/swiftshader/third_party/LLVM/unittests/ADT/
H A DAPIntTest.cpp29 EXPECT_EQ(126u, Minus3.countLeadingOnes());
34 EXPECT_EQ(128u, Minus1.countLeadingOnes());
48 EXPECT_EQ(32u, i33minus2.countLeadingOnes());
62 EXPECT_EQ(1u, i65minus.countLeadingOnes());
70 EXPECT_EQ(128u, u128max.countLeadingOnes());
79 EXPECT_EQ(0u, u64max.countLeadingOnes());
88 EXPECT_EQ(0u, zero.countLeadingOnes());
98 EXPECT_EQ(0u, one.countLeadingOnes());
/external/llvm/unittests/Support/
H A DMathExtrasTest.cpp173 TEST(MathExtras, countLeadingOnes) {
176 EXPECT_EQ(31u - i, countLeadingOnes(0xFFFFFFFF ^ (1 << i)));
180 EXPECT_EQ(63u - i, countLeadingOnes(0xFFFFFFFFFFFFFFFFULL ^ (1LL << i)));
184 EXPECT_EQ(31u - i, countLeadingOnes(0xFFFFFFFF ^ (1 << i)));
/external/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMUnwindOpAsm.cpp110 auto RangeLen = countLeadingOnes(Regs << (32 - RangeMSB));
/external/llvm/unittests/ADT/
H A DAPIntTest.cpp37 EXPECT_EQ(126u, Minus3.countLeadingOnes());
42 EXPECT_EQ(128u, Minus1.countLeadingOnes());
56 EXPECT_EQ(32u, i33minus2.countLeadingOnes());
69 EXPECT_EQ(0u, i65.countLeadingOnes());
78 EXPECT_EQ(1u, i65minus.countLeadingOnes());
86 EXPECT_EQ(128u, u128max.countLeadingOnes());
95 EXPECT_EQ(0u, u64max.countLeadingOnes());
104 EXPECT_EQ(0u, zero.countLeadingOnes());
114 EXPECT_EQ(0u, one.countLeadingOnes());
/external/llvm/include/llvm/ADT/
H A DAPInt.h1324 return BitWidth - countLeadingOnes() + 1;
1377 /// This function is an APInt version of the countLeadingOnes
1383 unsigned countLeadingOnes() const;
1388 return isNegative() ? countLeadingOnes() : countLeadingZeros();
/external/llvm/lib/Analysis/
H A DValueTracking.cpp354 unsigned LeadZ = std::max(KnownZero.countLeadingOnes() +
355 KnownZero2.countLeadingOnes(),
763 APInt::getHighBitsSet(BitWidth, RHSKnownZero.countLeadingOnes());
775 APInt::getHighBitsSet(BitWidth, RHSKnownZero.countLeadingOnes()+1);
778 APInt::getHighBitsSet(BitWidth, RHSKnownZero.countLeadingOnes());
940 unsigned LeadZ = KnownZero2.countLeadingOnes();
1138 unsigned Leaders = std::max(KnownZero.countLeadingOnes(),
1139 KnownZero2.countLeadingOnes());
2166 return std::max(FirstAnswer, KnownZero.countLeadingOnes());
2169 return std::max(FirstAnswer, KnownOne.countLeadingOnes());
[all...]
H A DInstructionSimplify.cpp2357 unsigned ShiftAmount = CI2->getValue().countLeadingOnes() - 1;
/external/swiftshader/third_party/LLVM/include/llvm/ADT/
H A DAPInt.h1155 return BitWidth - countLeadingOnes() + 1;
1201 /// countLeadingOnes - This function is an APInt version of the
1207 unsigned countLeadingOnes() const;
1212 return isNegative() ? countLeadingOnes() : countLeadingZeros();
/external/swiftshader/third_party/LLVM/lib/Analysis/
H A DValueTracking.cpp214 unsigned LeadZ = std::max(KnownZero.countLeadingOnes() +
215 KnownZero2.countLeadingOnes(),
232 unsigned LeadZ = KnownZero2.countLeadingOnes();
532 unsigned Leaders = std::max(KnownZero.countLeadingOnes(),
533 KnownZero2.countLeadingOnes());
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp738 unsigned Leaders = KnownZero2.countLeadingOnes();
740 KnownZero2.countLeadingOnes());
H A DInstCombineCompares.cpp1009 if ((KnownZero|KnownOne).countLeadingOnes() >= SrcBits-DstBits) {
/external/llvm/lib/Support/
H A DAPInt.cpp698 unsigned APInt::countLeadingOnes() const { function in class:APInt
700 return llvm::countLeadingOnes(VAL << (APINT_BITS_PER_WORD - BitWidth));
711 unsigned Count = llvm::countLeadingOnes(pVal[i] << shift);
717 Count += llvm::countLeadingOnes(pVal[i]);
2069 Overflow = ShAmt.uge(countLeadingOnes());
/external/llvm/include/llvm/Support/
H A DMathExtras.h414 std::size_t countLeadingOnes(T Value, ZeroBehavior ZB = ZB_Width) { function in namespace:llvm
/external/llvm/lib/Target/AArch64/MCTargetDesc/
H A DAArch64AddressingModes.h246 unsigned CLO = countLeadingOnes(Imm);
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp728 unsigned Leaders = KnownZero2.countLeadingOnes();
730 KnownZero2.countLeadingOnes());
H A DInstructionCombining.cpp2175 unsigned LeadingKnownZeros = KnownZero.countLeadingOnes();
2176 unsigned LeadingKnownOnes = KnownOne.countLeadingOnes();
2184 LeadingKnownOnes, C.getCaseValue()->getValue().countLeadingOnes());
H A DInstCombineCompares.cpp1473 Shift = AP1.countLeadingOnes() - AP2.countLeadingOnes();
1562 if ((KnownZero|KnownOne).countLeadingOnes() >= SrcBits-DstBits) {
/external/swiftshader/third_party/LLVM/lib/Support/
H A DAPInt.cpp817 unsigned APInt::countLeadingOnes() const {
2115 Overflow = ShAmt >= countLeadingOnes();
/external/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp2080 unsigned LeadZ = std::max(KnownZero.countLeadingOnes() +
2081 KnownZero2.countLeadingOnes(),
2095 unsigned LeadZ = KnownZero2.countLeadingOnes();
2367 unsigned KnownZeroHigh = KnownZero2.countLeadingOnes();
2372 KnownZero2.countLeadingOnes());
2434 uint32_t Leaders = std::max(KnownZero.countLeadingOnes(),
2435 KnownZero2.countLeadingOnes());
H A DSelectionDAGBuilder.cpp685 unsigned NumZeroBits = LOI->KnownZero.countLeadingOnes();
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp1681 unsigned LeadZ = std::max(KnownZero.countLeadingOnes() +
1682 KnownZero2.countLeadingOnes(),
1699 unsigned LeadZ = KnownZero2.countLeadingOnes();
2060 uint32_t Leaders = std::max(KnownZero.countLeadingOnes(),
2061 KnownZero2.countLeadingOnes());
H A DSelectionDAGBuilder.cpp686 unsigned NumZeroBits = LOI->KnownZero.countLeadingOnes();
/external/llvm/lib/Target/AArch64/
H A DAArch64ISelDAGToDAG.cpp1573 unsigned BitWide = 64 - countLeadingOnes(~(AndMask >> SrlImm));
/external/llvm/lib/Target/AMDGPU/
H A DAMDGPUISelLowering.cpp2123 return (VT.getSizeInBits() - KnownZero.countLeadingOnes()) <= 24;
/external/swiftshader/third_party/LLVM/lib/Target/X86/
H A DX86ISelLowering.cpp8331 if (Zeros.countLeadingOnes() < BitWidth - AndBitWidth)

Completed in 3626 milliseconds

12