[GHC] #8726: integer-gmp division regression

GHC ghc-devs at haskell.org
Sun Feb 2 09:49:09 UTC 2014


#8726: integer-gmp division regression
--------------------------+------------------------------------------------
       Reporter:  erikd   |             Owner:
           Type:  bug     |            Status:  new
       Priority:  normal  |         Milestone:  7.8.1
      Component:          |           Version:  7.7
  libraries (other)       |  Operating System:  Unknown/Multiple
       Keywords:          |   Type of failure:  Incorrect result at runtime
  Integer                 |         Test Case:
   Architecture:          |          Blocking:
  Unknown/Multiple        |
     Difficulty:          |
  Unknown                 |
     Blocked By:          |
Related Tickets:          |
--------------------------+------------------------------------------------
 With ghc 7.6.3:

 {{{
 ghci> quotRem 0x10000000000000001 (-0x100000)
 (-17592186044416,1)
 ghci> quotRem 0x10000001 (-0x100000)
 (-256,1)
 }}}

 with ghc 7.7

 {{{
 ghci> quotRem 0x10000000000000001 (-0x100000)
 (-17592186044416,-1)
 ghci> quotRem 0x10000001 (-0x100000)
 (-256,1)
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8726>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list