#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

_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to