]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
x86: slightly simplify VPBROADCASTQ -> VUNPCKLQDQ optimization again
authorJan Beulich <jbeulich@suse.com>
Fri, 24 Jul 2026 06:23:06 +0000 (08:23 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 24 Jul 2026 06:23:06 +0000 (08:23 +0200)
To fix eb4031cb20aac117ca0fc276 ("x86: Check XMM destination when
optimizing 128-bit VPBROADCASTQ") should merely have changed which operand
is checked for being Xmmword. Drop the excess check.

gas/config/tc-i386.c

index 92771c3ca1502daf46a0f2f99aa03366f3bafbd2..7ace19e4a9eec5fbf5701c69a18f6b0c6f58c2ca 100644 (file)
@@ -5828,7 +5828,6 @@ optimize_encoding (void)
           && i.operands == i.reg_operands
           && i.tm.opcode_modifier.vex
           && !(i.op[0].regs->reg_flags & RegRex)
-          && i.op[0].regs->reg_type.bitfield.xmmword
           && i.op[1].regs->reg_type.bitfield.xmmword
           && pp.encoding != encoding_vex3)
     {