mipsisa32-unknown-elf-as: Error: too large constant specified
Alan Modra
amodra@bigpond.net.au
Wed Oct 15 12:20:00 GMT 2003
More information about the Binutils mailing list
Wed Oct 15 12:20:00 GMT 2003
- Previous message (by thread): mipsisa32-unknown-elf-as: Error: too large constant specified
- Next message (by thread): mipsisa32-unknown-elf-as: Error: too large constant specified
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Wed, Oct 15, 2003 at 01:03:11PM +0200, Thiemo Seufer wrote:
> + if (ex->X_op == O_constant && HAVE_32BIT_GPRS)
> + {
> + if (ex->X_add_number < 0)
> + ex->X_add_number = ((ex->X_add_number + 0x80000000) & 0xffffffff)
> + - 0x80000000;
> + else
> + ex->X_add_number &= 0xffffffff;
> + }
Better:
if (ex->X_op == O_constant && HAVE_32BIT_GPRS)
ex->X_add_number = (((ex->X_add_number & 0xffffffff) ^ 0x80000000)
- 0x80000000);
--
Alan Modra
IBM OzLabs - Linux Technology Centre
- Previous message (by thread): mipsisa32-unknown-elf-as: Error: too large constant specified
- Next message (by thread): mipsisa32-unknown-elf-as: Error: too large constant specified
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list