mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-05 01:31:05 +00:00
[APFloat] Fix typo in test so we actually test if we handle denormals.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184447 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0b827993ed
commit
3781fbc29a
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user