diff --git a/gas/ChangeLog b/gas/ChangeLog index afbb20ef112..0952daf0f5f 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2017-05-15 Maciej W. Rozycki + + * config/tc-mips.c (match_int_operand): Call + `match_not_constant' before returning failure for a non-constant + 16-bit immediate conditionally allowed. + 2017-05-15 Maciej W. Rozycki * config/tc-mips.c (match_const_int): Call `match_out_of_range' diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index 9fde4626239..3dc6a53d91c 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -5082,7 +5082,10 @@ match_int_operand (struct mips_arg_info *arg, /* Accept non-constant operands if no later alternative matches, leaving it for the caller to process. */ if (!arg->lax_match) - return FALSE; + { + match_not_constant (arg); + return FALSE; + } offset_reloc[0] = BFD_RELOC_LO16; return TRUE; }