]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
x86: simplify one case of base opcode setting in optimize_encoding()
authorJan Beulich <jbeulich@suse.com>
Fri, 24 Jul 2026 06:23:44 +0000 (08:23 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 24 Jul 2026 06:23:44 +0000 (08:23 +0200)
The W property is evaluated only later, so the base opcode can still be
the value found in the corresponding insn template.

gas/config/tc-i386.c

index 2853f0c76e7c11155eb3f8f7da3493eb1c375e71..dd6d43810870b3a6b5dbec7082d910245d68586f 100644 (file)
@@ -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