
#7830: Error: operand out of range -------------------------+-------------------------------------------------- Reporter: erikd | Owner: Type: bug | Status: new Priority: high | Milestone: 7.8.1 Component: Compiler | Version: 7.7 Keywords: | Os: Linux Architecture: powerpc | Failure: Installing GHC failed Difficulty: Unknown | Testcase: Blockedby: | Blocking: Related: | -------------------------+-------------------------------------------------- Comment(by erikd): By hacking in a bunch of Show instances I've manged to find a pattern match in the `PPC` aseembler pretty printer for the code which pretty prints the problematic `LWZ` instruction: `LD` `II32` (`RegReal` (`RealRegSingle` 30)) (`AddrRegImm` (`RegReal` (`RealRegSingle` 31)) (`ImmConstantDiff` (`ImmCLbl` (`AsmTempLabel` _)) (`ImmCLbl` `PicBaseLabel`))) I'm now going to try and make a temporary hack to the `pprInst` function to handle this special case differently and when that works, try to move the fix back into the `CodeGen` where it belongs. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7830#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler