#1910: Native Code gen miscompiles double2Int# / float2Int# on x86_32
----------------------+-----------------------------------------------------
Reporter: int-e | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 6.8.2
Component: Compiler | Version: 6.8.1
Severity: normal | Resolution:
Keywords: | Difficulty: Easy (1 hr)
Testcase: | Architecture: x86
Os: Unknown |
----------------------+-----------------------------------------------------
Comment (by int-e):
I tested the patch with Brad's example, and it seems to work.
Note however that the code generator now generates quite a mouthful of
code for float/double --> int conversions on x86_32. Maybe writing a small
library routine and calling it would be better.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1910#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs