* config/tc-mips.c (mips_ip): Permit non constant expressions in

'u' case: lets lui %hi(foo) work correctly.
This commit is contained in:
Ian Lance Taylor
1994-06-15 16:49:51 +00:00
parent 66da6c8470
commit 36a87ad7c5
2 changed files with 8 additions and 3 deletions

View File

@@ -4647,9 +4647,9 @@ mips_ip (str, ip)
case 'u': /* upper 16 bits */
c = my_getSmallExpression (&imm_expr, s);
if (imm_expr.X_op != O_constant
|| imm_expr.X_add_number < 0
|| imm_expr.X_add_number >= 0x10000)
if (imm_expr.X_op == O_constant
&& (imm_expr.X_add_number < 0
|| imm_expr.X_add_number >= 0x10000))
as_bad ("lui expression not in range 0..65535");
imm_reloc = BFD_RELOC_LO16;
if (c)