
#8847: Int64 ^ Int64 broken by optimization on SPARC ------------------------------------------------+-------------------------- Reporter: kgardas | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler (NCG) | Version: Resolution: | Keywords: Operating System: Solaris | Architecture: sparc Type of failure: Incorrect result at runtime | Difficulty: Test Case: | Unknown Blocking: 8816 | Blocked By: | Related Tickets: ------------------------------------------------+-------------------------- Comment (by kgardas): {{{ main = print ( 2 ^ 5 :: Int64 ) }}} runs fine and returns correct result. The problem is with optimization of {{{2 ^ X, X > 5}}}. Also I've though the problem may be with a call to ghc-prim hs_timesInt64, but this call is also presented and used in {{{2 ^ 5}}} optimized version, so this does not seems like a culprit. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8847#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler