From 98bfd087ca4d685bd1f5fee2125907fdfcaba2b0 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 31 May 1996 05:10:20 +0000 Subject: * config/tc-mips.c (load_register): If mips_isa < 3, permit a 32 bit value with the high bit set. --- gas/config/tc-mips.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'gas/config/tc-mips.c') diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index b8759b4..23df337 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -1838,13 +1838,15 @@ load_register (counter, reg, ep, dbl) (int) BFD_RELOC_LO16); return; } - else if (((ep->X_add_number &~ (offsetT) 0x7fffffff) == 0 - || ((ep->X_add_number &~ (offsetT) 0x7fffffff) - == ~ (offsetT) 0x7fffffff)) - && (! dbl - || ! ep->X_unsigned - || sizeof (ep->X_add_number) > 4 - || (ep->X_add_number & 0x80000000) == 0)) + else if ((((ep->X_add_number &~ (offsetT) 0x7fffffff) == 0 + || ((ep->X_add_number &~ (offsetT) 0x7fffffff) + == ~ (offsetT) 0x7fffffff)) + && (! dbl + || ! ep->X_unsigned + || sizeof (ep->X_add_number) > 4 + || (ep->X_add_number & 0x80000000) == 0)) + || (mips_isa < 3 + && (ep->X_add_number &~ 0xffffffff) == 0)) { /* 32 bit values require an lui. */ macro_build ((char *) NULL, counter, ep, "lui", "t,u", reg, -- cgit v1.1