mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-07 21:09:21 +00:00
[APInt] Add PR40897 test case
In reality APInt::getBitsNeeded(INT_MIN, base) cases require one less bit than is returned llvm-svn: 362301
This commit is contained in:
parent
a81091b5a1
commit
c219588067
@ -1262,6 +1262,9 @@ TEST(APIntTest, StringBitsNeeded10) {
|
||||
EXPECT_EQ(5U, APInt::getBitsNeeded("-10", 10));
|
||||
EXPECT_EQ(6U, APInt::getBitsNeeded("-19", 10));
|
||||
EXPECT_EQ(6U, APInt::getBitsNeeded("-20", 10));
|
||||
|
||||
// TODO: INT_MIN cases need 1 less bit (PR40897)
|
||||
EXPECT_EQ(9U, APInt::getBitsNeeded("-128", 10));
|
||||
}
|
||||
|
||||
TEST(APIntTest, StringBitsNeeded16) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user