Lines Matching defs:extractBits

2102   EXPECT_EQ(i127.extractBits(64, 0).getZExtValue(), 0x3456FFFFFFFFFFFFull);
2103 EXPECT_EQ(i127.extractBits(63, 64).getZExtValue(), 0x7FFFFFFFFFFF8012ull);
2119 EXPECT_EQ(i257.extractBits(64, 0).getZExtValue(), 0x0000000000000000ull);
2120 EXPECT_EQ(i257.extractBits(64, 64).getZExtValue(), 0xFFFFFFFFFFFFFFFFull);
2121 EXPECT_EQ(i257.extractBits(64, 128).getZExtValue(), 0x00000000FFFFFFFFull);
2122 EXPECT_EQ(i257.extractBits(65, 192).getZExtValue(), 0x0000000000000000ull);
2127 EXPECT_EQ(i260.extractBits(64, 0).getZExtValue(), 0x8000000000007FFFull);
2128 EXPECT_EQ(i260.extractBits(64, 64).getZExtValue(), 0x0000000000000000ull);
2129 EXPECT_EQ(i260.extractBits(64, 128).getZExtValue(), 0xFFFFFFFFFFFF0000ull);
2130 EXPECT_EQ(i260.extractBits(64, 192).getZExtValue(), 0xFFFFFFFFFFFFFFFFull);
2131 EXPECT_EQ(i260.extractBits(4, 256).getZExtValue(), 0x000000000000000Full);
2156 EXPECT_EQ(i127.extractBits(64, 0).getZExtValue(), 0x3456FFFFFFFFFFFFull);
2157 EXPECT_EQ(i127.extractBits(63, 64).getZExtValue(), 0x7FFFFFFFFFFF8012ull);
2192 TEST(APIntTest, extractBits) {
2194 EXPECT_EQ(0x3456, i32.extractBits(16, 4));
2197 EXPECT_EQ(0xFFFFFFFF, i64.extractBits(32, 0));
2199 EXPECT_EQ(0x01234567, i64.extractBits(32, 32));
2203 EXPECT_EQ(0xFFu, i257.extractBits(16, 0));
2205 EXPECT_EQ((0xFFu >> 1), i257.extractBits(16, 1));
2207 EXPECT_EQ(-1, i257.extractBits(32, 64).getSExtValue());
2209 EXPECT_EQ(-1, i257.extractBits(128, 128).getSExtValue());
2211 EXPECT_EQ(-1, i257.extractBits(66, 191).getSExtValue());
2214 i257.extractBits(128, 1).getSExtValue());
2218 i257.extractBits(129, 1).getSExtValue());
2223 APInt(144, "281474976710655", 10).extractBits(48, 48));
2227 APInt(144, "281474976710655", 10).extractBits(48, 0));
2231 APInt(144, "281474976710655", 10).extractBits(48, 1));
2237 // Tests based on extractBits
3508 EXPECT_EQ(0U, APInt(4, 10).extractBits(0, 2).getBitWidth());