/external/swiftshader/third_party/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() 62 EXPECT_EQ(1u, i65minus.countLeadingOnes()); in TEST() 70 EXPECT_EQ(128u, u128max.countLeadingOnes()); in TEST() 79 EXPECT_EQ(0u, u64max.countLeadingOnes()); in TEST() 88 EXPECT_EQ(0u, zero.countLeadingOnes()); in TEST() 98 EXPECT_EQ(0u, one.countLeadingOnes()); in TEST()
|
/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/lib/Target/ARM/MCTargetDesc/ |
D | ARMUnwindOpAsm.cpp | 110 auto RangeLen = countLeadingOnes(Regs << (32 - RangeMSB)); in EmitVFPRegSave()
|
/external/swiftshader/third_party/LLVM/include/llvm/ADT/ |
D | APInt.h | 1155 return BitWidth - countLeadingOnes() + 1; in getMinSignedBits() 1207 unsigned countLeadingOnes() const; 1212 return isNegative() ? countLeadingOnes() : countLeadingZeros(); in getNumSignBits()
|
/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/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 …]
|
D | InstructionSimplify.cpp | 2357 unsigned ShiftAmount = CI2->getValue().countLeadingOnes() - 1; in SimplifyICmpInst()
|
/external/swiftshader/third_party/LLVM/lib/Analysis/ |
D | ValueTracking.cpp | 214 unsigned LeadZ = std::max(KnownZero.countLeadingOnes() + in ComputeMaskedBits() 215 KnownZero2.countLeadingOnes(), in ComputeMaskedBits() 232 unsigned LeadZ = KnownZero2.countLeadingOnes(); in ComputeMaskedBits() 532 unsigned Leaders = std::max(KnownZero.countLeadingOnes(), in ComputeMaskedBits() 533 KnownZero2.countLeadingOnes()); in ComputeMaskedBits()
|
/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/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombineSimplifyDemanded.cpp | 738 unsigned Leaders = KnownZero2.countLeadingOnes(); in SimplifyDemandedUseBits() 740 KnownZero2.countLeadingOnes()); in SimplifyDemandedUseBits()
|
D | InstCombineCompares.cpp | 1009 if ((KnownZero|KnownOne).countLeadingOnes() >= SrcBits-DstBits) { in visitICmpInstWithInstAndIntCst()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineSimplifyDemanded.cpp | 728 unsigned Leaders = KnownZero2.countLeadingOnes(); in SimplifyDemandedUseBits() 730 KnownZero2.countLeadingOnes()); in SimplifyDemandedUseBits()
|
D | InstructionCombining.cpp | 2175 unsigned LeadingKnownZeros = KnownZero.countLeadingOnes(); in visitSwitchInst() 2176 unsigned LeadingKnownOnes = KnownOne.countLeadingOnes(); in visitSwitchInst() 2184 LeadingKnownOnes, C.getCaseValue()->getValue().countLeadingOnes()); in visitSwitchInst()
|
D | InstCombineCompares.cpp | 1473 Shift = AP1.countLeadingOnes() - AP2.countLeadingOnes(); in FoldICmpCstShrCst() 1562 if ((KnownZero|KnownOne).countLeadingOnes() >= SrcBits-DstBits) { in visitICmpInstWithInstAndIntCst()
|
/external/llvm/lib/Target/AArch64/MCTargetDesc/ |
D | AArch64AddressingModes.h | 246 unsigned CLO = countLeadingOnes(Imm); in processLogicalImmediate()
|
/external/llvm/include/llvm/Support/ |
D | MathExtras.h | 414 std::size_t countLeadingOnes(T Value, ZeroBehavior ZB = ZB_Width) {
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAG.cpp | 2080 unsigned LeadZ = std::max(KnownZero.countLeadingOnes() + in computeKnownBits() 2081 KnownZero2.countLeadingOnes(), in computeKnownBits() 2095 unsigned LeadZ = KnownZero2.countLeadingOnes(); in computeKnownBits() 2367 unsigned KnownZeroHigh = KnownZero2.countLeadingOnes(); in computeKnownBits() 2372 KnownZero2.countLeadingOnes()); in computeKnownBits() 2434 uint32_t Leaders = std::max(KnownZero.countLeadingOnes(), in computeKnownBits() 2435 KnownZero2.countLeadingOnes()); in computeKnownBits()
|
D | SelectionDAGBuilder.cpp | 685 unsigned NumZeroBits = LOI->KnownZero.countLeadingOnes(); in getCopyFromRegs()
|
/external/swiftshader/third_party/LLVM/lib/Support/ |
D | APInt.cpp | 817 unsigned APInt::countLeadingOnes() const { in countLeadingOnes() function in APInt 2115 Overflow = ShAmt >= countLeadingOnes(); in sshl_ov()
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/ |
D | SelectionDAG.cpp | 1681 unsigned LeadZ = std::max(KnownZero.countLeadingOnes() + in ComputeMaskedBits() 1682 KnownZero2.countLeadingOnes(), in ComputeMaskedBits() 1699 unsigned LeadZ = KnownZero2.countLeadingOnes(); in ComputeMaskedBits() 2060 uint32_t Leaders = std::max(KnownZero.countLeadingOnes(), in ComputeMaskedBits() 2061 KnownZero2.countLeadingOnes()); in ComputeMaskedBits()
|
D | SelectionDAGBuilder.cpp | 686 unsigned NumZeroBits = LOI->KnownZero.countLeadingOnes(); in getCopyFromRegs()
|
/external/llvm/lib/Target/AMDGPU/ |
D | AMDGPUISelLowering.cpp | 2123 return (VT.getSizeInBits() - KnownZero.countLeadingOnes()) <= 24; in isU24()
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64ISelDAGToDAG.cpp | 1573 unsigned BitWide = 64 - countLeadingOnes(~(AndMask >> SrlImm)); in isSeveralBitsExtractOpFromShr()
|
/external/swiftshader/third_party/LLVM/lib/Target/X86/ |
D | X86ISelLowering.cpp | 8331 if (Zeros.countLeadingOnes() < BitWidth - AndBitWidth) in LowerToBT()
|