Home
last modified time | relevance | path

Searched refs:isShiftedMask (Results 1 – 11 of 11) sorted by relevance

/external/swiftshader/third_party/llvm-7.0/llvm/unittests/ADT/
DAPIntTest.cpp1669 TEST(APIntTest, isShiftedMask) { in TEST() argument
1670 EXPECT_FALSE(APInt(32, 0x01010101).isShiftedMask()); in TEST()
1671 EXPECT_TRUE(APInt(32, 0xf0000000).isShiftedMask()); in TEST()
1672 EXPECT_TRUE(APInt(32, 0xffff0000).isShiftedMask()); in TEST()
1673 EXPECT_TRUE(APInt(32, 0xff << 1).isShiftedMask()); in TEST()
1676 EXPECT_FALSE(APInt(N, 0).isShiftedMask()); in TEST()
1681 EXPECT_TRUE(MaskVal.isShiftedMask()); in TEST()
1685 EXPECT_TRUE(MaskVal.isShiftedMask()); in TEST()
1689 EXPECT_TRUE(MaskVal.isShiftedMask()); in TEST()
/external/llvm/include/llvm/ADT/
DAPInt.h1799 inline bool isShiftedMask(unsigned numBits, const APInt &APIVal) { in isShiftedMask() function
/external/swiftshader/third_party/LLVM/include/llvm/ADT/
DAPInt.h1592 inline bool isShiftedMask(unsigned numBits, const APInt& APIVal) { in isShiftedMask() function
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AArch64/
DAArch64ISelDAGToDAG.cpp2137 static bool isShiftedMask(uint64_t Mask, EVT VT) { in isShiftedMask() function
2182 if (!isShiftedMask(Known.Zero.getZExtValue(), VT)) in tryBitfieldInsertOpFromOrAndImm()
2357 (isShiftedMask(Mask0Imm, VT) || isShiftedMask(Mask1Imm, VT))) { in tryBitfieldInsertOpFromOr()
2362 if (isShiftedMask(Mask0Imm, VT)) { in tryBitfieldInsertOpFromOr()
/external/llvm/lib/Target/AArch64/
DAArch64ISelDAGToDAG.cpp2038 static bool isShiftedMask(uint64_t Mask, EVT VT) { in isShiftedMask() function
2083 if (!isShiftedMask(KnownZero.getZExtValue(), VT)) in tryBitfieldInsertOpFromOrAndImm()
2258 (isShiftedMask(Mask0Imm, VT) || isShiftedMask(Mask1Imm, VT))) { in tryBitfieldInsertOpFromOr()
2263 if (isShiftedMask(Mask0Imm, VT)) { in tryBitfieldInsertOpFromOr()
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DAPInt.h1826 inline bool isShiftedMask(unsigned numBits, const APInt &APIVal) { in isShiftedMask() function
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Mips/
DMipsISelLowering.cpp102 static bool isShiftedMask(uint64_t I, uint64_t &Pos, uint64_t &Size) { in isShiftedMask() function
796 !isShiftedMask(CN->getZExtValue(), SMPos, SMSize)) in performANDCombine()
878 !isShiftedMask(~CN->getSExtValue(), SMPos0, SMSize0)) in performORCombine()
886 !isShiftedMask(CN->getZExtValue(), SMPos1, SMSize1)) in performORCombine()
1131 !isShiftedMask(CN->getZExtValue(), SMPos, SMSize)) in performSHLCombine()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/
DAPInt.h516 bool isShiftedMask() const { in isShiftedMask() function
/external/llvm/lib/Target/Mips/
DMipsISelLowering.cpp65 static bool isShiftedMask(uint64_t I, uint64_t &Pos, uint64_t &Size) { in isShiftedMask() function
708 !isShiftedMask(CN->getZExtValue(), SMPos, SMSize)) in performANDCombine()
743 !isShiftedMask(~CN->getSExtValue(), SMPos0, SMSize0)) in performORCombine()
751 !isShiftedMask(CN->getZExtValue(), SMPos1, SMSize1)) in performORCombine()
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineAndOrXor.cpp388 if (!APIntOps::isShiftedMask(BitWidth, V)) return false; in isRunOfOnes()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineAndOrXor.cpp340 if (!APIntOps::isShiftedMask(BitWidth, V)) return false; in isRunOfOnes()