Home
last modified time | relevance | path

Searched refs:findFirstSet (Results 1 – 9 of 9) sorted by relevance

/llvm-project-15.0.7/llvm/unittests/Support/
H A DMathExtrasTest.cpp93 TEST(MathExtras, findFirstSet) { in TEST() argument
98 EXPECT_EQ(0xFFULL, findFirstSet(Z8)); in TEST()
99 EXPECT_EQ(0xFFFFULL, findFirstSet(Z16)); in TEST()
100 EXPECT_EQ(0xFFFFFFFFULL, findFirstSet(Z32)); in TEST()
101 EXPECT_EQ(0xFFFFFFFFFFFFFFFFULL, findFirstSet(Z64)); in TEST()
107 EXPECT_EQ(1u, findFirstSet(NZ8)); in TEST()
108 EXPECT_EQ(1u, findFirstSet(NZ16)); in TEST()
109 EXPECT_EQ(1u, findFirstSet(NZ32)); in TEST()
110 EXPECT_EQ(1u, findFirstSet(NZ64)); in TEST()
/llvm-project-15.0.7/llvm/lib/Target/RISCV/MCTargetDesc/
H A DRISCVMatInt.cpp113 ShiftAmount = findFirstSet((uint64_t)Val); in generateInstSeqImpl()
/llvm-project-15.0.7/llvm/utils/TableGen/
H A DCodeGenDAGPatterns.h153 return Count + findFirstSet(W); in find_from_pos()
161 return Count + findFirstSet(W); in find_from_pos()
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DMathExtras.h239 template <typename T> T findFirstSet(T Val, ZeroBehavior ZB = ZB_Max) {
/llvm-project-15.0.7/llvm/lib/Target/SystemZ/
H A DSystemZInstrInfo.cpp1718 unsigned First = findFirstSet(Mask); in isStringOfOnes()
1722 Length = findFirstSet(Top); in isStringOfOnes()
H A DSystemZISelLowering.cpp782 (SplatUndefZ & ((uint64_t(1) << findFirstSet(SplatBitsZ)) - 1)); in isVectorConstantLegal()
/llvm-project-15.0.7/llvm/lib/Support/
H A DAPInt.cpp2302 return findFirstSet(value, ZB_Max); in partLSB()
/llvm-project-15.0.7/llvm/lib/Target/Mips/AsmParser/
H A DMipsAsmParser.cpp2683 unsigned BitNum = findFirstSet(x); in isShiftedUIntAtAnyPosition()
2812 unsigned FirstSet = findFirstSet((uint64_t)ImmValue); in loadImmediate()
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86InstrInfo.cpp2068 unsigned AltIdx = findFirstSet((ZMask | (1 << DstIdx)) ^ 15); in commuteInstructionImpl()