[binutils-gdb] x86: slightly simplify VPBROADCASTQ -> VUNPCKLQDQ optimization again
Jan Beulich
jbeulich@sourceware.org
Fri Jul 24 06:25:42 GMT 2026
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=333fb2dac903a18fe87eefa932aa87fc6878b630
commit 333fb2dac903a18fe87eefa932aa87fc6878b630
Author: Jan Beulich <jbeulich@suse.com>
Date: Fri Jul 24 08:23:06 2026 +0200
x86: slightly simplify VPBROADCASTQ -> VUNPCKLQDQ optimization again
To fix eb4031cb20aa, c117ca0fc276 ("x86: Check XMM destination when
optimizing 128-bit VPBROADCASTQ") should merely have changed which operand
is checked for being Xmmword. Drop the excess check.
Diff:
---
gas/config/tc-i386.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index 92771c3ca15..7ace19e4a9e 100644
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -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)
{
More information about the Binutils-cvs
mailing list