mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
[APInt] Remove special case for i1.
Add a unit test. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239062 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -134,6 +134,12 @@ TEST(APIntTest, i1) {
|
||||
EXPECT_EQ(one, neg_one);
|
||||
EXPECT_EQ(two, neg_two);
|
||||
|
||||
// Min/max signed values.
|
||||
EXPECT_TRUE(zero.isMaxSignedValue());
|
||||
EXPECT_FALSE(one.isMaxSignedValue());
|
||||
EXPECT_FALSE(zero.isMinSignedValue());
|
||||
EXPECT_TRUE(one.isMinSignedValue());
|
||||
|
||||
// Additions.
|
||||
EXPECT_EQ(two, one + one);
|
||||
EXPECT_EQ(zero, neg_one + one);
|
||||
|
Reference in New Issue
Block a user