Lines Matching refs:extractBits

1961   EXPECT_EQ(i127.extractBits(64, 0).getZExtValue(), 0x3456FFFFFFFFFFFFull);  in TEST()
1962 EXPECT_EQ(i127.extractBits(63, 64).getZExtValue(), 0x7FFFFFFFFFFF8012ull); in TEST()
1978 EXPECT_EQ(i257.extractBits(64, 0).getZExtValue(), 0x0000000000000000ull); in TEST()
1979 EXPECT_EQ(i257.extractBits(64, 64).getZExtValue(), 0xFFFFFFFFFFFFFFFFull); in TEST()
1980 EXPECT_EQ(i257.extractBits(64, 128).getZExtValue(), 0x00000000FFFFFFFFull); in TEST()
1981 EXPECT_EQ(i257.extractBits(65, 192).getZExtValue(), 0x0000000000000000ull); in TEST()
1986 EXPECT_EQ(i260.extractBits(64, 0).getZExtValue(), 0x8000000000007FFFull); in TEST()
1987 EXPECT_EQ(i260.extractBits(64, 64).getZExtValue(), 0x0000000000000000ull); in TEST()
1988 EXPECT_EQ(i260.extractBits(64, 128).getZExtValue(), 0xFFFFFFFFFFFF0000ull); in TEST()
1989 EXPECT_EQ(i260.extractBits(64, 192).getZExtValue(), 0xFFFFFFFFFFFFFFFFull); in TEST()
1990 EXPECT_EQ(i260.extractBits(4, 256).getZExtValue(), 0x000000000000000Full); in TEST()
2015 EXPECT_EQ(i127.extractBits(64, 0).getZExtValue(), 0x3456FFFFFFFFFFFFull); in TEST()
2016 EXPECT_EQ(i127.extractBits(63, 64).getZExtValue(), 0x7FFFFFFFFFFF8012ull); in TEST()
2051 TEST(APIntTest, extractBits) { in TEST() argument
2053 EXPECT_EQ(0x3456, i32.extractBits(16, 4)); in TEST()
2056 EXPECT_EQ(0xFFFFFFFF, i64.extractBits(32, 0)); in TEST()
2058 EXPECT_EQ(0x01234567, i64.extractBits(32, 32)); in TEST()
2062 EXPECT_EQ(0xFFu, i257.extractBits(16, 0)); in TEST()
2064 EXPECT_EQ((0xFFu >> 1), i257.extractBits(16, 1)); in TEST()
2066 EXPECT_EQ(-1, i257.extractBits(32, 64).getSExtValue()); in TEST()
2068 EXPECT_EQ(-1, i257.extractBits(128, 128).getSExtValue()); in TEST()
2070 EXPECT_EQ(-1, i257.extractBits(66, 191).getSExtValue()); in TEST()
2073 i257.extractBits(128, 1).getSExtValue()); in TEST()
2077 i257.extractBits(129, 1).getSExtValue()); in TEST()
2082 APInt(144, "281474976710655", 10).extractBits(48, 48)); in TEST()
2086 APInt(144, "281474976710655", 10).extractBits(48, 0)); in TEST()
2090 APInt(144, "281474976710655", 10).extractBits(48, 1)); in TEST()
3040 EXPECT_EQ(0U, APInt(4, 10).extractBits(0, 2).getBitWidth()); in TEST()