diff options
author | Michael Gottesman <mgottesman@apple.com> | 2013-06-19 21:53:45 +0000 |
---|---|---|
committer | Michael Gottesman <mgottesman@apple.com> | 2013-06-19 21:53:45 +0000 |
commit | 4f71c1b2b9b1195d6f5107c433e06dedc0a61d14 (patch) | |
tree | df2e3b4cda75c77e94aaeb3f942a6d6883c35bd2 /unittests | |
parent | c971cb828164e02cb9ab4d715e0a0fe00566dcbb (diff) | |
download | external_llvm-4f71c1b2b9b1195d6f5107c433e06dedc0a61d14.zip external_llvm-4f71c1b2b9b1195d6f5107c433e06dedc0a61d14.tar.gz external_llvm-4f71c1b2b9b1195d6f5107c433e06dedc0a61d14.tar.bz2 |
[APFloat] Changed APFloat::isNormal => APFloat::isFiniteNonZero for all tests in unittests.
I forgot to to do this in r184356. The only references were in APFloatTest.cpp.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184366 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r-- | unittests/ADT/APFloatTest.cpp | 16 |
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)); } |