Ticket #3182 (closed bug: fixed)
Bad FP code generated by x86_64 native code generator.
| Reported by: | igloo | Owned by: | benl |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.12.1 |
| Component: | Compiler (NCG) | Version: | 6.11 |
| Keywords: | Cc: | ||
| Operating System: | Unknown/Multiple | Architecture: | x86_64 (amd64) |
| Type of failure: | Difficulty: | Unknown | |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
With this module:
main :: IO () main = mapM_ print $ map log2 vals log2 :: Int -> Double log2 x = logBase 2 (fromIntegral x) vals :: [Int] vals = [1, 2, 17]
on amd64/Linux with the HEAD, I'm seeing:
$ ghc -fforce-recomp -O -fregs-graph -o num012 num012.hs; ./num012 0.0 1.2607434391239006e13 5.153241959769104e13
Ben, are you able to take a look please?
Change History
Note: See
TracTickets for help on using
tickets.
