cvs commit: fptools/ghc/compiler/cmm PprC.hs
simonmar at microsoft.com
Fri Feb 20 09:59:28 EST 2004
> dons 2004/02/19 20:14:41 PST
> Modified files: (Branch: backend-hacking-branch)
> ghc/compiler/cmm PprC.hs
> * pprExpr (CmmRegOff) needs offsets wordShift'd, I'm pretty
> sure (SimonM?)
No - CmmRegOffs are in bytes. Some registers have type (StgWord*) which
is why they are casted to StgWord before adding the offset.
It was done this way to get the types right (see comment at the top of
> * parens around reg +/- offset expressions.
parens shouldn't be necessary here - pprExpr1 is used when parens might
More information about the Cvs-ghc