#4914: FPU initialization required again
---------------------------------+------------------------------------------
    Reporter:  aruiz             |        Owner:  simonmar                   
        Type:  bug               |       Status:  new                        
    Priority:  high              |    Milestone:  7.2.1                      
   Component:  Compiler (NCG)    |      Version:  7.0.1                      
    Keywords:                    |     Testcase:                             
   Blockedby:                    |   Difficulty:                             
          Os:  Unknown/Multiple  |     Blocking:                             
Architecture:  x86               |      Failure:  Incorrect result at runtime
---------------------------------+------------------------------------------
Changes (by fryguybob):

 * cc: fryguybob@… (added)


Comment:

 I poked around a little to see if I could make a smaller deterministic
 test case and came up with this:
 {{{
 #!hs
 main = print $ encodeFloat 2 6
 }}}
 Resulting in:
 {{{
 PS C:\hg\haskell\trac\4914> ghc --make bug.hs .\hook.o -fforce-recomp
 [1 of 1] Compiling Main             ( bug.hs, bug.o )
 Linking bug.exe ...
 PS C:\hg\haskell\trac\4914> .\bug.exe
 128.0
 OnExitHook: NONEMPTY FPU Stack (7)
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4914#comment:6>
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