mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 02:33:33 +00:00
Pacify the compiler (signed with unsigned comparison) by making
these constants unsigned. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83962 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
321333e51e
commit
937708cea9
@ -316,14 +316,14 @@ TEST(APIntTest, StringBitsNeeded16) {
|
||||
}
|
||||
|
||||
TEST(APIntTest, Log2) {
|
||||
EXPECT_EQ(APInt(15, 7).logBase2(), 2);
|
||||
EXPECT_EQ(APInt(15, 7).ceilLogBase2(), 3);
|
||||
EXPECT_EQ(APInt(15, 7).logBase2(), 2U);
|
||||
EXPECT_EQ(APInt(15, 7).ceilLogBase2(), 3U);
|
||||
EXPECT_EQ(APInt(15, 7).exactLogBase2(), -1);
|
||||
EXPECT_EQ(APInt(15, 8).logBase2(), 3);
|
||||
EXPECT_EQ(APInt(15, 8).ceilLogBase2(), 3);
|
||||
EXPECT_EQ(APInt(15, 8).logBase2(), 3U);
|
||||
EXPECT_EQ(APInt(15, 8).ceilLogBase2(), 3U);
|
||||
EXPECT_EQ(APInt(15, 8).exactLogBase2(), 3);
|
||||
EXPECT_EQ(APInt(15, 9).logBase2(), 3);
|
||||
EXPECT_EQ(APInt(15, 9).ceilLogBase2(), 4);
|
||||
EXPECT_EQ(APInt(15, 9).logBase2(), 3U);
|
||||
EXPECT_EQ(APInt(15, 9).ceilLogBase2(), 4U);
|
||||
EXPECT_EQ(APInt(15, 9).exactLogBase2(), -1);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user