[PATCH] x86: fix expansion of %XV

Jan Beulich posted 1 patch 10 months, 2 weeks ago
Failed in applying to current master (apply log)
[PATCH] x86: fix expansion of %XV
Posted by Jan Beulich 10 months, 2 weeks ago
Only %LV should continue on to S handling; avoid emitting a stray 'l'
(typically) in suffix-always mode.

--- a/opcodes/i386-dis.c
+++ b/opcodes/i386-dis.c
@@ -11067,19 +11067,20 @@ putop (instr_info *ins, const char *in_t
 		  *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)
 	    {
Re: [PATCH] x86: fix expansion of %XV
Posted by Jan Beulich 10 months, 2 weeks ago
On 16.06.2023 14:33, Jan Beulich wrote:
> Only %LV should continue on to S handling; avoid emitting a stray 'l'
> (typically) in suffix-always mode.

Oops, I'm sorry, confusion of mailing lists.

Jan