mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-27 13:30:05 +00:00
[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
This commit is contained in:
parent
c971cb8281
commit
4f71c1b2b9
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user