Lines Matching refs:getBitWidth
45 EXPECT_EQ(64u, APSInt::get(7).getBitWidth()); in TEST()
49 EXPECT_EQ(64u, APSInt::get(-7).getBitWidth()); in TEST()
56 EXPECT_EQ(64u, APSInt::getUnsigned(7).getBitWidth()); in TEST()
60 EXPECT_EQ(64u, APSInt::getUnsigned(-7).getBitWidth()); in TEST()
154 EXPECT_EQ(APSInt("0").getBitWidth(), 1U); in TEST()
155 EXPECT_EQ(APSInt("000").getBitWidth(), 1U); in TEST()
156 EXPECT_EQ(APSInt("1").getBitWidth(), 1U); in TEST()
157 EXPECT_EQ(APSInt("2").getBitWidth(), 2U); in TEST()
158 EXPECT_EQ(APSInt("3").getBitWidth(), 2U); in TEST()
159 EXPECT_EQ(APSInt("003").getBitWidth(), 2U); in TEST()
160 EXPECT_EQ(APSInt("15").getBitWidth(), 4U); in TEST()
161 EXPECT_EQ(APSInt("16").getBitWidth(), 5U); in TEST()
162 EXPECT_EQ(APSInt("17").getBitWidth(), 5U); in TEST()
164 EXPECT_EQ(APSInt("-0").getBitWidth(), 1U); in TEST()
165 EXPECT_EQ(APSInt("-000").getBitWidth(), 1U); in TEST()
166 EXPECT_EQ(APSInt("-1").getBitWidth(), 1U); in TEST()
167 EXPECT_EQ(APSInt("-2").getBitWidth(), 2U); in TEST()
168 EXPECT_EQ(APSInt("-3").getBitWidth(), 3U); in TEST()
169 EXPECT_EQ(APSInt("-003").getBitWidth(), 3U); in TEST()
170 EXPECT_EQ(APSInt("-5").getBitWidth(), 4U); in TEST()
171 EXPECT_EQ(APSInt("-15").getBitWidth(), 5U); in TEST()
172 EXPECT_EQ(APSInt("-16").getBitWidth(), 5U); in TEST()
173 EXPECT_EQ(APSInt("-17").getBitWidth(), 6U); in TEST()