Lines Matching refs:isNegatedPowerOf2
1814 TEST(APIntTest, isNegatedPowerOf2) { in TEST() argument
1815 EXPECT_FALSE(APInt(5, 0x00).isNegatedPowerOf2()); in TEST()
1816 EXPECT_TRUE(APInt(15, 0x7ffe).isNegatedPowerOf2()); in TEST()
1817 EXPECT_TRUE(APInt(16, 0xfffc).isNegatedPowerOf2()); in TEST()
1818 EXPECT_TRUE(APInt(32, 0xffffffff).isNegatedPowerOf2()); in TEST()
1821 EXPECT_FALSE(APInt(N, 0).isNegatedPowerOf2()); in TEST()
1822 EXPECT_TRUE(APInt::getAllOnes(N).isNegatedPowerOf2()); in TEST()
1823 EXPECT_TRUE(APInt::getSignedMinValue(N).isNegatedPowerOf2()); in TEST()
1824 EXPECT_TRUE((-APInt::getSignedMinValue(N)).isNegatedPowerOf2()); in TEST()
1828 EXPECT_FALSE(APInt::getOneBitSet(N, I).isNegatedPowerOf2()); in TEST()
1829 EXPECT_TRUE((-APInt::getOneBitSet(N, I)).isNegatedPowerOf2()); in TEST()
1832 EXPECT_TRUE((-MaskVal).isNegatedPowerOf2()); in TEST()
1835 EXPECT_TRUE(ShiftMaskVal.isNegatedPowerOf2()); in TEST()