#4441: NCG miscompiles Double -> Float -> Double
---------------------------------+------------------------------------------
    Reporter:  dterei            |        Owner:  dterei                     
        Type:  bug               |       Status:  new                        
    Priority:  normal            |    Milestone:                             
   Component:  Compiler (NCG)    |      Version:  7.1                        
    Keywords:                    |     Testcase:                             
   Blockedby:                    |   Difficulty:                             
          Os:  Unknown/Multiple  |     Blocking:                             
Architecture:  x86               |      Failure:  Incorrect result at runtime
---------------------------------+------------------------------------------

Comment(by simonmar):

 Are you sure this is the same bug?  On x86 there are often floating-point
 differences between `-fasm` and `-fvia-C`, due to the difference in
 precision between x87 registers (80 bits) and in-memory values (32 or
 64-bits).  Try using `-fasm` with `-msse2` to get more consistent results,
 or `-fvia-C` with `-fexcess-precision` to get inconsistent results with
 the C backend.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4441#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to