aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-06-15 16:49:51 +0000
committerIan Lance Taylor <ian@airs.com>1994-06-15 16:49:51 +0000
commit36a87ad7c54beae5ee2855d2ddf67240366eb1fb (patch)
tree607ea35bba3ffbf35fa1def564de4cc19d766d0d /gas/config
parent66da6c84707acf5f657df6889e0c35bbd4786f20 (diff)
downloadgdb-36a87ad7c54beae5ee2855d2ddf67240366eb1fb.zip
gdb-36a87ad7c54beae5ee2855d2ddf67240366eb1fb.tar.gz
gdb-36a87ad7c54beae5ee2855d2ddf67240366eb1fb.tar.bz2
* config/tc-mips.c (mips_ip): Permit non constant expressions in
'u' case: lets lui %hi(foo) work correctly.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-mips.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index 0ab2cdb..6195e9c 100644
--- a/gas/config/tc-mips.c
+++ b/gas/config/tc-mips.c
@@ -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)