Home
last modified time | relevance | path

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

/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/include/llvm/ADT/
DAPInt.h1293 return BitWidth - countLeadingOnes() + 1; in getMinSignedBits()
1352 unsigned countLeadingOnes() const;
1357 return isNegative() ? countLeadingOnes() : countLeadingZeros(); in getNumSignBits()
/external/llvm/lib/Analysis/
DValueTracking.cpp171 unsigned LeadZ = std::max(KnownZero.countLeadingOnes() + in computeKnownBitsMul()
172 KnownZero2.countLeadingOnes(), in computeKnownBitsMul()
387 unsigned LeadZ = KnownZero2.countLeadingOnes(); in computeKnownBits()
589 unsigned Leaders = std::max(KnownZero.countLeadingOnes(), in computeKnownBits()
590 KnownZero2.countLeadingOnes()); in computeKnownBits()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineSimplifyDemanded.cpp770 unsigned Leaders = KnownZero2.countLeadingOnes(); in SimplifyDemandedUseBits()
772 KnownZero2.countLeadingOnes()); in SimplifyDemandedUseBits()
DInstCombineCompares.cpp1066 if ((KnownZero|KnownOne).countLeadingOnes() >= SrcBits-DstBits) { in visitICmpInstWithInstAndIntCst()
/external/llvm/lib/Support/
DAPInt.cpp710 unsigned APInt::countLeadingOnes() const { in countLeadingOnes() function in APInt
2057 Overflow = ShAmt >= countLeadingOnes(); in sshl_ov()
/external/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAG.cpp1980 unsigned LeadZ = std::max(KnownZero.countLeadingOnes() + in computeKnownBits()
1981 KnownZero2.countLeadingOnes(), in computeKnownBits()
1995 unsigned LeadZ = KnownZero2.countLeadingOnes(); in computeKnownBits()
2324 uint32_t Leaders = std::max(KnownZero.countLeadingOnes(), in computeKnownBits()
2325 KnownZero2.countLeadingOnes()); in computeKnownBits()
DSelectionDAGBuilder.cpp711 unsigned NumZeroBits = LOI->KnownZero.countLeadingOnes(); in getCopyFromRegs()
/external/llvm/lib/Target/R600/
DAMDGPUISelLowering.cpp1863 return (VT.getSizeInBits() - KnownZero.countLeadingOnes()) <= 24; in isU24()
/external/llvm/lib/Target/X86/
DX86ISelLowering.cpp11970 if (Zeros.countLeadingOnes() < BitWidth - AndBitWidth) in LowerToBT()