aboutsummaryrefslogtreecommitdiffstats
path: root/unittests/ADT/APFloatTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'unittests/ADT/APFloatTest.cpp')
-rw-r--r--unittests/ADT/APFloatTest.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/unittests/ADT/APFloatTest.cpp b/unittests/ADT/APFloatTest.cpp
index 186b15a..5382eac 100644
--- a/unittests/ADT/APFloatTest.cpp
+++ b/unittests/ADT/APFloatTest.cpp
@@ -1218,28 +1218,28 @@ TEST(APFloatTest, getSmallest) {
APFloat test = APFloat::getSmallest(APFloat::IEEEsingle, false);
APFloat expected = APFloat(APFloat::IEEEsingle, "0x0.000002p-126");
EXPECT_FALSE(test.isNegative());
- EXPECT_TRUE(test.isNormal());
+ EXPECT_TRUE(test.isFiniteNonZero());
EXPECT_TRUE(test.isDenormal());
EXPECT_TRUE(test.bitwiseIsEqual(expected));
test = APFloat::getSmallest(APFloat::IEEEsingle, true);
expected = APFloat(APFloat::IEEEsingle, "-0x0.000002p-126");
EXPECT_TRUE(test.isNegative());
- EXPECT_TRUE(test.isNormal());
+ EXPECT_TRUE(test.isFiniteNonZero());
EXPECT_TRUE(test.isDenormal());
EXPECT_TRUE(test.bitwiseIsEqual(expected));
test = APFloat::getSmallest(APFloat::IEEEquad, false);
expected = APFloat(APFloat::IEEEquad, "0x0.0000000000000000000000000001p-16382");
EXPECT_FALSE(test.isNegative());
- EXPECT_TRUE(test.isNormal());
+ EXPECT_TRUE(test.isFiniteNonZero());
EXPECT_TRUE(test.isDenormal());
EXPECT_TRUE(test.bitwiseIsEqual(expected));
test = APFloat::getSmallest(APFloat::IEEEquad, true);
expected = APFloat(APFloat::IEEEquad, "-0x0.0000000000000000000000000001p-16382");
EXPECT_TRUE(test.isNegative());
- EXPECT_TRUE(test.isNormal());
+ EXPECT_TRUE(test.isFiniteNonZero());
EXPECT_TRUE(test.isDenormal());
EXPECT_TRUE(test.bitwiseIsEqual(expected));
}
@@ -1248,28 +1248,28 @@ TEST(APFloatTest, getSmallestNormalized) {
APFloat test = APFloat::getSmallestNormalized(APFloat::IEEEsingle, false);
APFloat expected = APFloat(APFloat::IEEEsingle, "0x1p-126");
EXPECT_FALSE(test.isNegative());
- EXPECT_TRUE(test.isNormal());
+ EXPECT_TRUE(test.isFiniteNonZero());
EXPECT_FALSE(test.isDenormal());
EXPECT_TRUE(test.bitwiseIsEqual(expected));
test = APFloat::getSmallestNormalized(APFloat::IEEEsingle, true);
expected = APFloat(APFloat::IEEEsingle, "-0x1p-126");
EXPECT_TRUE(test.isNegative());
- EXPECT_TRUE(test.isNormal());
+ EXPECT_TRUE(test.isFiniteNonZero());
EXPECT_FALSE(test.isDenormal());
EXPECT_TRUE(test.bitwiseIsEqual(expected));
test = APFloat::getSmallestNormalized(APFloat::IEEEquad, false);
expected = APFloat(APFloat::IEEEquad, "0x1p-16382");
EXPECT_FALSE(test.isNegative());
- EXPECT_TRUE(test.isNormal());
+ EXPECT_TRUE(test.isFiniteNonZero());
EXPECT_FALSE(test.isDenormal());
EXPECT_TRUE(test.bitwiseIsEqual(expected));
test = APFloat::getSmallestNormalized(APFloat::IEEEquad, true);
expected = APFloat(APFloat::IEEEquad, "-0x1p-16382");
EXPECT_TRUE(test.isNegative());
- EXPECT_TRUE(test.isNormal());
+ EXPECT_TRUE(test.isFiniteNonZero());
EXPECT_FALSE(test.isDenormal());
EXPECT_TRUE(test.bitwiseIsEqual(expected));
}