ppc instructions in gas

Richard Henderson rth@cygnus.com
Thu May 6 18:43:00 GMT 1999

On Thu, May 06, 1999 at 06:57:54PM -0600, Cort Dougan wrote:
> } We should fix gcc then.  That should not be hard at all.
> Ok.  Patch gcc to emit correct code and modify the asm we have in the
> kernel?  Know of any cute gas methods of converting 0xffff and its ilk to a
> signed value?

Pardon?  "gas methods"?

> } I'm not real comfortable just changing it.  Who knows what sort
> } of code is out there.  I wouldn't be adverse to reducing the
> } error to a warning in 32-bit mode though.
> I'd prefer to actually do the right thing in my asm and if gcc did the same
> that would all the better.  So the check in binutils to allow unsigned
> values is probably a workaround for gcc?

No, the check to allow unsigned values is a workaround for (to pick a
name out of the hat) NorTel's hand-written assembly code.

So I'm on the right page, "lis" is the only instruction this is an issue
for?  What about the old "liu" insn?  "U" presumably stood for "upper"
not "unsigned"?


More information about the Gas2 mailing list