From fffb10b122c58128f604ddabd421db84c99a5eaa Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Wed, 21 Jun 2023 08:32:13 +0200 Subject: [PATCH] x86: fix expansion of %XV Only %LV should continue on to S handling; avoid emitting a stray 'l' (typically) in suffix-always mode. --- opcodes/i386-dis.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) 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) { -- 2.30.2