#3182: Bad code generated with -fregs-graph
-------------------------------+--------------------------------------------
Reporter: igloo | Owner: benl
Type: bug | Status: new
Priority: normal | Milestone: 6.12.1
Component: Compiler (NCG) | Version: 6.11
Severity: normal | Keywords:
Difficulty: Unknown | Testcase:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
-------------------------------+--------------------------------------------
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?
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3182>
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