[GHC] #8849: Unregisterised compiler: arithmetic failure

GHC ghc-devs at haskell.org
Tue Mar 4 20:36:25 UTC 2014


#8849: Unregisterised compiler: arithmetic failure
--------------------------+------------------------------------------------
       Reporter:          |             Owner:
  trommler                |            Status:  new
           Type:  bug     |         Milestone:
       Priority:  normal  |           Version:  7.8.1-rc2
      Component:          |  Operating System:  Unknown/Multiple
  Compiler                |   Type of failure:  Incorrect result at runtime
       Keywords:          |         Test Case:  arith005
   Architecture:          |          Blocking:
  Unknown/Multiple        |
     Difficulty:          |
  Unknown                 |
     Blocked By:          |
Related Tickets:  #8819   |
--------------------------+------------------------------------------------
 Compiling the following with RC2 on powerpc 64 downloaded from
 haskell.org:
 {{{
 main = putStr $ show (-1.0000000001 :: Double)
 }}}
 Setting {{{-O}}} yields:
 {{{
 0.0
 }}}
 Without optimization the correct result is displayed.

 I prepared an unregisterised compiler on amd64 and see the same issue and
 more arithmetic tests fail in testsuite. In fact I took the above from
 arith005.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8849>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list