Lines Matching refs:isShiftedMask
1747 TEST(APIntTest, isShiftedMask) { in TEST() argument
1748 EXPECT_FALSE(APInt(32, 0x01010101).isShiftedMask()); in TEST()
1749 EXPECT_TRUE(APInt(32, 0xf0000000).isShiftedMask()); in TEST()
1750 EXPECT_TRUE(APInt(32, 0xffff0000).isShiftedMask()); in TEST()
1751 EXPECT_TRUE(APInt(32, 0xff << 1).isShiftedMask()); in TEST()
1754 EXPECT_FALSE(APInt(32, 0x01010101).isShiftedMask(MaskIdx, MaskLen)); in TEST()
1755 EXPECT_TRUE(APInt(32, 0xf0000000).isShiftedMask(MaskIdx, MaskLen)); in TEST()
1758 EXPECT_TRUE(APInt(32, 0xffff0000).isShiftedMask(MaskIdx, MaskLen)); in TEST()
1761 EXPECT_TRUE(APInt(32, 0xff << 1).isShiftedMask(MaskIdx, MaskLen)); in TEST()
1766 EXPECT_FALSE(APInt(N, 0).isShiftedMask()); in TEST()
1767 EXPECT_FALSE(APInt(N, 0).isShiftedMask(MaskIdx, MaskLen)); in TEST()
1772 EXPECT_TRUE(MaskVal.isShiftedMask()); in TEST()
1773 EXPECT_TRUE(MaskVal.isShiftedMask(MaskIdx, MaskLen)); in TEST()
1779 EXPECT_TRUE(MaskVal.isShiftedMask()); in TEST()
1780 EXPECT_TRUE(MaskVal.isShiftedMask(MaskIdx, MaskLen)); in TEST()
1786 EXPECT_TRUE(MaskVal.isShiftedMask()); in TEST()
1787 EXPECT_TRUE(MaskVal.isShiftedMask(MaskIdx, MaskLen)); in TEST()