mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
Fix APFloat::getLargest so that it actually returns the correct value. Found by accident while reviewing a patch to nearby code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141816 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -648,4 +648,9 @@ TEST(APFloatTest, exactInverse) {
|
||||
EXPECT_FALSE(APFloat(1.40129846e-45f).getExactInverse(0));
|
||||
}
|
||||
|
||||
TEST(APFloatTest, getLargest) {
|
||||
EXPECT_EQ(3.40282347e+38f, APFloat::getLargest(APFloat::IEEEsingle).convertToFloat());
|
||||
EXPECT_EQ(1.7976931348623157e+308, APFloat::getLargest(APFloat::IEEEdouble).convertToDouble());
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user