* config/tc-mips.c (mips_ip): Permit non constant expressions in
authorIan Lance Taylor <ian@airs.com>
Wed, 15 Jun 1994 16:49:51 +0000 (16:49 +0000)
committerIan Lance Taylor <ian@airs.com>
Wed, 15 Jun 1994 16:49:51 +0000 (16:49 +0000)
'u' case: lets lui %hi(foo) work correctly.

gas/ChangeLog
gas/config/tc-mips.c

index 0200a5babaf27d363f60dcd3c3a3cc61df2885c6..c0edad37dcde63a863cf819234766260559dac7a 100644 (file)
@@ -1,3 +1,8 @@
+Wed Jun 15 12:32:55 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
+
+       * config/tc-mips.c (mips_ip): Permit non constant expressions in
+       'u' case: lets lui %hi(foo) work correctly.
+
 Mon Jun 13 12:08:52 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
 
        * config/obj-aout.c (obj_aout_frob_symbol): Warn about an attempt
index 0ab2cdb047cfd09aebfec65fd919340533338943..6195e9c3a85ed69727d4b6db3be8f3e178bae0f4 100644 (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)
This page took 0.037522 seconds and 4 git commands to generate.