From: Jan Beulich Date: Wed, 21 Jun 2023 06:32:13 +0000 (+0200) Subject: x86: fix expansion of %XV X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fffb10b122c58128f604ddabd421db84c99a5eaa;p=binutils-gdb.git x86: fix expansion of %XV Only %LV should continue on to S handling; avoid emitting a stray 'l' (typically) in suffix-always mode. --- diff --git a/opcodes/i386-dis.c b/opcodes/i386-dis.c index 6161bf72459..15a0e1b1080 100644 --- a/opcodes/i386-dis.c +++ b/opcodes/i386-dis.c @@ -11055,19 +11055,20 @@ putop (instr_info *ins, const char *in_template, int sizeflag) *ins->obufp++ = ' '; break; case 'L': - if (!(ins->rex & REX_W)) - break; - *ins->obufp++ = 'a'; - *ins->obufp++ = 'b'; - *ins->obufp++ = 's'; - break; + if (ins->rex & REX_W) + { + *ins->obufp++ = 'a'; + *ins->obufp++ = 'b'; + *ins->obufp++ = 's'; + } + goto case_S; default: abort (); } } else abort (); - goto case_S; + break; case 'W': if (l == 0) {