[GHC] #6156: Optimiser bug on linux-powerpc

GHC cvs-ghc at haskell.org
Sun Aug 12 22:14:44 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):

 Another example program which produces different results optimised vs un-
 optimised:

 {{{
 import GHC.Word

 main :: IO ()
 main = print (input, input + 1)

 input :: Word64
 input = 0xa1a2a3a4a5a6a7a8
 }}}

 In this case word64ToWord does not get called and neither does quotRem.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/6156#comment:29>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the Glasgow-haskell-bugs mailing list