https://sourceware.org/bugzilla/show_bug.cgi?id=34171
--- Comment #2 from Sourceware Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by H.J. Lu <[email protected]>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=c117ca0fc27654355839ee75010f25d46e6aeecd commit c117ca0fc27654355839ee75010f25d46e6aeecd Author: H.J. Lu <[email protected]> Date: Wed May 27 08:39:16 2026 +0800 x86: Check XMM destination when optimizing 128-bit VPBROADCASTQ commit eb4031cb20aa710834be891f8638e04dbba81edc Author: Jan Beulich <[email protected]> Date: Tue Jul 4 17:07:26 2023 +0200 x86: optimize 128-bit VPBROADCASTQ to VPUNPCKLQDQ was supposed to optimize vpbroadcastq %xmmN, %xmmM -> vpunpcklqdq %xmmN, %xmmN, %xmmM (N < 8) But it didn't check if the destination operand is XMM. As the result, it turned: vpbroadcastq %xmmN, %ymmM into vpunpcklqdq %xmmN, %xmmN, %xmmM Fixing it by checking XMM destination. PR gas/34171 * config/tc-i386.c (optimize_encoding): Check XMM destination when optimizing 128-bit VPBROADCASTQ. * testsuite/gas/i386/optimize-2.d: Updated. * testsuite/gas/i386/optimize-2.s: Add 256-bit vpbroadcastq. Signed-off-by: H.J. Lu <[email protected]> -- You are receiving this mail because: You are on the CC list for the bug.
