[GHC] #6156: Optimiser bug on linux-powerpc
GHC
cvs-ghc at haskell.org
Sat Aug 11 14:49:09 CEST 2012
#6156: Optimiser bug on linux-powerpc
------------------------------------------+---------------------------------
Reporter: erikd | Owner: pcapriotti
Type: bug | Status: new
Priority: normal | Milestone: 7.6.1
Component: Compiler | Version: 7.4.1
Resolution: | Keywords:
Os: Linux | Architecture: powerpc
Failure: Incorrect result at runtime | Difficulty: Unknown
Testcase: | Blockedby:
Blocking: | Related:
------------------------------------------+---------------------------------
Comment(by erikd):
The program also gives the different result (optimised vs unoptimised) on
powerpc:
{{{
import GHC.Word
main :: IO ()
main = putStrLn $ show $ quotRem input 1
input :: Word64
input = 0xa1a2a3a4a5a6a7a8
}}}
but gives the correct answer on i386 and x86-64.
In previous tests, the optimised version of the program calls `quotRem`
and the unoptimised version does not.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/6156#comment:28>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list