From: Jan Beulich Date: Fri, 24 Jul 2026 06:23:44 +0000 (+0200) Subject: x86: simplify one case of base opcode setting in optimize_encoding() X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cf64f1ae2ca36d81a90e49066004260f9cda0cb7;p=thirdparty%2Fbinutils-gdb.git x86: simplify one case of base opcode setting in optimize_encoding() The W property is evaluated only later, so the base opcode can still be the value found in the corresponding insn template. --- diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 2853f0c76e7..dd6d4381087 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -5461,7 +5461,7 @@ optimize_encoding (void) andl %rN, %rN -> testl %rN, %rN orl %rN, %rN -> testl %rN, %rN */ - i.tm.base_opcode = 0x84 | (i.tm.base_opcode & 1); + i.tm.base_opcode = 0x84; } else if (!optimize_for_space && i.tm.base_opcode == 0xd0