#5900: Git HEAD on PowerPC : Error: operand out of range
-------------------------+--------------------------------------------------
Reporter: erikd | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.5
Keywords: | Os: Linux
Architecture: powerpc | Failure: Building GHC failed
Difficulty: Unknown | Testcase:
Blockedby: | Blocking:
Related: |
-------------------------+--------------------------------------------------
Comment(by erikd):
Attached is pair of patches to fix this.
Decided that a shift right of a 32 bit register could be replaced with a
clear so that:
{{{
srwi dest, src, 32
}}}
can be replaced with:
{{{
xor dest, src, src
}}}
Fixed this for the SRW instruction only, because thats what we were
actually hitting. Did not fix SRAW and SLW because we're not currently
hitting that case. Did however modify the function limitShiftRI so that it
panics with a sensible easy-to-track-down error message when the shift
value is out of range (so when we do hit the problem we get a panic rather
than an assembler error message).
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5900#comment:7>
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