ppc instructions in gas

Richard Henderson rth@cygnus.com
Thu May 6 15:35:00 GMT 1999


On Thu, May 06, 1999 at 04:11:59PM -0600, Cort Dougan wrote:
> } Which instruction were you trying to fix?  "liu" perhaps? 
> } As-is, it affects instructions like "addis", and you can't
> } really add +50000, can you?
>
> You're right, addis takes a signed 16-bit number.  Things like lis and oris
> take an unsigned 16-bit number, though.  They both use SISIGNOPT.

Then the right thing to do is make those insns use UI instead.

Not having a ppc manual handy, can you provide a complete list
of the incorrect instructions?  Or better yet, a patch?  ;-)


r~


More information about the Gas2 mailing list