From 31a2c6ffd76a91f4a70f8c95ba9e7f6564b1c01a Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 28 Jan 1997 20:37:27 +0000 Subject: [PATCH] * config/tc-mips.c (md_convert_frag): If the user explicitly requested an extended opcode, pass warn as true to mips16_immed. --- gas/ChangeLog | 3 +++ gas/config/tc-mips.c | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 8841d1faa8..999017dddf 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 3eadbbe561..e6a1e2a041 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) { -- 2.34.1