diff options
author | Herbert Valerio Riedel <hvr@gnu.org> | 2014-11-19 11:09:33 +0100 |
---|---|---|
committer | Herbert Valerio Riedel <hvr@gnu.org> | 2014-11-19 11:37:07 +0100 |
commit | e2af452cd533778c5447719c59429d72bb1fe00d (patch) | |
tree | 5b8961b0a7ad233f861d160f2830067c399619cd /testsuite/.gitignore | |
parent | 42244668af6d8c1dd6a2d64af90ed57d8ecd8d88 (diff) | |
download | haskell-e2af452cd533778c5447719c59429d72bb1fe00d.tar.gz |
Restore exact old semantics of `decodeFloat`
`integer-gmp2` uses the new 64bit-based IEEE deconstructing primop
introduced in b62bd5ecf3be421778e4835010b6b334e95c5a56.
However, the returned values differ for exceptional IEEE values:
Previous (expected) semantics:
> decodeFloat (-1/0)
(-4503599627370496,972)
> decodeFloat (1/0)
(4503599627370496,972)
> decodeFloat (0/0)
(-6755399441055744,972)
Currently (broken) semantics:
> decodeFloat (-1/0 :: Double)
(-9223372036854775808,-53)
> decodeFloat (1/0 :: Double)
(-9223372036854775808,-53)
> decodeFloat (0/0 :: Double)
(-9223372036854775808,-53)
This patch reverts to the old expected semantics.
I plan to revisit the implementation during GHC 7.11 development.
This should address #9810
Reviewed By: austin, ekmett, luite
Differential Revision: https://phabricator.haskell.org/D486
Diffstat (limited to 'testsuite/.gitignore')
-rw-r--r-- | testsuite/.gitignore | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/testsuite/.gitignore b/testsuite/.gitignore index a07a376b26..705306c3ef 100644 --- a/testsuite/.gitignore +++ b/testsuite/.gitignore @@ -1035,6 +1035,7 @@ mk/ghcconfig*_inplace_bin_ghc-stage2.exe.mk /tests/numeric/should_run/T7233 /tests/numeric/should_run/T7689 /tests/numeric/should_run/T8726 +/tests/numeric/should_run/T9810 /tests/numeric/should_run/add2 /tests/numeric/should_run/arith001 /tests/numeric/should_run/arith002 |