nightmares with biased stack pointers
Andude
andude@execpc.com
Sat Sep 13 14:24:00 GMT 1997
Richard Henderson wrote:
>
> > 3) Hey look, taking into account the known alignment of the stack
> > frame and the "add sp, const, reg; srlx 4; sllx 4;" sequence,
> > I can determine that this is really an alignment of the 'constant'
> > so I can merge this into a constant operation and blow the two
> > shifts away.
I'm new to this list and this was the first message I got, so I'm not
quite sure exactly what it is you're talking about... But if you want to
get rid of the two shifts, why don't you just use a logical and? I'm
also not sure what kind of warped instruction set 'srlx' and 'sllx' are
from, but I would guess what you want to do is 'andx ~15'.
-Andy.
More information about the Gcc
mailing list