[APInt] Remove special case for i1.
[oota-llvm.git] / unittests / ADT / APIntTest.cpp
index 498f50c9c81ff6ade7ecde40218431b266ae51a3..e4398f0f669c9243252c367e0c674911cb30fce7 100644 (file)
@@ -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);