[GHC] #7830: Error: operand out of range

GHC ghc-devs at haskell.org
Sat Sep 12 09:22:40 UTC 2015


#7830: Error: operand out of range
-------------------------------------+-------------------------------------
        Reporter:  erikd             |                   Owner:
            Type:  bug               |                  Status:  new
        Priority:  highest           |               Milestone:  8.0.1
       Component:  Compiler          |                 Version:  7.8.1-rc1
      Resolution:                    |                Keywords:
Operating System:  Linux             |            Architecture:  powerpc
 Type of failure:  Installing GHC    |               Test Case:
  failed                             |
      Blocked By:                    |                Blocking:
 Related Tickets:                    |  Differential Revisions:
-------------------------------------+-------------------------------------

Comment (by erikd):

 The generated code that causes a problem looks like:

 {{{
         stw     31, 36328(1)
         lwz     31, 67(14)
         stw     29, 36336(1)
         lwz     29, 71(14)
         stw     28, 36344(1)
         lwz     28, 75(14)
         stw     26, 36352(1)
 }}}

 The problem is, that according to
 https://www-01.ibm.com/support/knowledgecenter/ssw_aix_71/com.ibm.aix.alangref/idalangref_stw_st_instrs.htm
 the offset is a signed 16 bit value and 36336 can'nt be represented in a
 signed 16 bit value.

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


More information about the ghc-tickets mailing list