[GHC] #9304: Floating point woes; Different behavior on Mac vs Linux
GHC
ghc-devs at haskell.org
Sun Jul 13 19:56:29 UTC 2014
#9304: Floating point woes; Different behavior on Mac vs Linux
-------------------------------------+------------------------------------
Reporter: lerkok | Owner:
Type: bug | Status: new
Priority: high | Milestone:
Component: Compiler | Version: 7.8.3
Resolution: | Keywords: floating point
Operating System: Unknown/Multiple | Architecture: Unknown/Multiple
Type of failure: None/Unknown | Difficulty: Unknown
Test Case: | Blocked By: 9276
Blocking: | Related Tickets:
-------------------------------------+------------------------------------
Comment (by lerkok):
@carter: Good point; I haven't considered the implications of encoding of
the input literals. Nonetheless, the experiment you suggested prints
precisely the same results:
{{{
[ubuntu-VirtualBox]~/precision>ghc main.hs -o main -msse2 -fforce-recomp ;
./main ; ghc main.hs -o main -fexcess-precision -fforce-recomp; ./main
[1 of 1] Compiling Main ( main.hs, main.o )
Linking main ...
(-6192449487634422,-49)
[1 of 1] Compiling Main ( main.hs, main.o )
Linking main ...
(-6192449487634422,-49)
}}}
which still differ from the behavior on 64-bit platforms. So, I'm still
inclined to think something is off here.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9304#comment:11>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list