From: Ian Lance Taylor Date: Tue, 28 Jan 1997 20:37:27 +0000 (+0000) Subject: * config/tc-mips.c (md_convert_frag): If the user explicitly X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=31a2c6ffd76a91f4a70f8c95ba9e7f6564b1c01a;p=binutils-gdb.git * config/tc-mips.c (md_convert_frag): If the user explicitly requested an extended opcode, pass warn as true to mips16_immed. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 8841d1faa8d..999017dddfb 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,8 @@ Tue Jan 28 15:27:28 1997 Ian Lance Taylor + * 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 3eadbbe561a..e6a1e2a041b 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) {