[llvm] r184447 - [APFloat] Fix typo in test so we actually test if we handle denormals.
Michael Gottesman
mgottesman at apple.com
Thu Jun 20 11:25:16 PDT 2013
Author: mgottesman
Date: Thu Jun 20 13:25:16 2013
New Revision: 184447
URL: http://llvm.org/viewvc/llvm-project?rev=184447&view=rev
Log:
[APFloat] Fix typo in test so we actually test if we handle denormals.
Modified:
llvm/trunk/unittests/ADT/APFloatTest.cpp
Modified: llvm/trunk/unittests/ADT/APFloatTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ADT/APFloatTest.cpp?rev=184447&r1=184446&r2=184447&view=diff
==============================================================================
--- llvm/trunk/unittests/ADT/APFloatTest.cpp (original)
+++ llvm/trunk/unittests/ADT/APFloatTest.cpp Thu Jun 20 13:25:16 2013
@@ -1425,7 +1425,7 @@ TEST(APFloatTest, isIEEENormal) {
EXPECT_FALSE(APFloat::getZero(APFloat::IEEEsingle, false).isIEEENormal());
EXPECT_FALSE(APFloat::getNaN(APFloat::IEEEsingle, false).isIEEENormal());
EXPECT_FALSE(APFloat::getSNaN(APFloat::IEEEsingle, false).isIEEENormal());
- EXPECT_FALSE(APFloat(APFloat::IEEEsingle, "0x1p-159").isIEEENormal());
+ EXPECT_FALSE(APFloat(APFloat::IEEEsingle, "0x1p-149").isIEEENormal());
}
TEST(APFloatTest, isFinite) {
@@ -1435,7 +1435,7 @@ TEST(APFloatTest, isFinite) {
EXPECT_TRUE(APFloat::getZero(APFloat::IEEEsingle, false).isFinite());
EXPECT_FALSE(APFloat::getNaN(APFloat::IEEEsingle, false).isFinite());
EXPECT_FALSE(APFloat::getSNaN(APFloat::IEEEsingle, false).isFinite());
- EXPECT_TRUE(APFloat(APFloat::IEEEsingle, "0x1p-159").isFinite());
+ EXPECT_TRUE(APFloat(APFloat::IEEEsingle, "0x1p-149").isFinite());
}
TEST(APFloatTest, isInfinity) {
@@ -1445,7 +1445,7 @@ TEST(APFloatTest, isInfinity) {
EXPECT_FALSE(APFloat::getZero(APFloat::IEEEsingle, false).isInfinity());
EXPECT_FALSE(APFloat::getNaN(APFloat::IEEEsingle, false).isInfinity());
EXPECT_FALSE(APFloat::getSNaN(APFloat::IEEEsingle, false).isInfinity());
- EXPECT_FALSE(APFloat(APFloat::IEEEsingle, "0x1p-159").isInfinity());
+ EXPECT_FALSE(APFloat(APFloat::IEEEsingle, "0x1p-149").isInfinity());
}
TEST(APFloatTest, isNaN) {
@@ -1455,7 +1455,7 @@ TEST(APFloatTest, isNaN) {
EXPECT_FALSE(APFloat::getZero(APFloat::IEEEsingle, false).isNaN());
EXPECT_TRUE(APFloat::getNaN(APFloat::IEEEsingle, false).isNaN());
EXPECT_TRUE(APFloat::getSNaN(APFloat::IEEEsingle, false).isNaN());
- EXPECT_FALSE(APFloat(APFloat::IEEEsingle, "0x1p-159").isNaN());
+ EXPECT_FALSE(APFloat(APFloat::IEEEsingle, "0x1p-149").isNaN());
}
TEST(APFloatTest, isFiniteNonZero) {
More information about the llvm-commits
mailing list