diff options
-rw-r--r-- | gas/ChangeLog | 3 | ||||
-rw-r--r-- | gas/config/tc-mips.c | 5 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 8841d1f..999017d 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,8 @@ Tue Jan 28 15:27:28 1997 Ian Lance Taylor <ian@cygnus.com> + * config/tc-mips.c (md_convert_frag): If the user explicitly + requested an extended opcode, pass warn as true to mips16_immed. + * config/tc-mips.c (mips16_ip): Handle a missing expression like an explicit 0, so that explicitly extended instructions work correctly. diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index 3eadbbe..e6a1e2a 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -9753,8 +9753,9 @@ md_convert_frag (abfd, asec, fragp) else insn = bfd_getl16 (buf); - mips16_immed (fragp->fr_file, fragp->fr_line, type, val, false, small, - ext, &insn, &use_extend, &extend); + mips16_immed (fragp->fr_file, fragp->fr_line, type, val, + RELAX_MIPS16_USER_EXT (fragp->fr_subtype), + small, ext, &insn, &use_extend, &extend); if (use_extend) { |