#5900: Git HEAD on PowerPC : Error: operand out of range
---------------------------------+------------------------------------------
Reporter: erikd | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 7.5 | Keywords:
Os: Linux | Architecture: powerpc
Failure: Building GHC failed | Testcase:
Blockedby: | Blocking:
Related: |
---------------------------------+------------------------------------------
Comment(by erikd):
I have two trees, current HEAD (which is broken) and a working tree (last
commit c56c0c90dfedd6acf6e146dd44a77f75a613a99b). Comparing the
compiler/nativeGen/PPC/ directories between the trees shows only minor
differences and nothing that could be causing this issue.
Looking at the code for handling the SWR instruction I find:
{{{
-- limit immediate argument for shift instruction to range 0..32
-- (yes, the maximum is really 32, not 31)
limitShiftRI :: RI -> RI
limitShiftRI (RIImm (ImmInt i)) | i > 32 || i < 0 = RIImm (ImmInt 32)
limitShiftRI x = x
}}}
which suggests that the PowerPC assembler did at one time accept a shift
value of 32, but is now disallowing it.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5900#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs