x86: VPSADBW's source operands are also commutative
authorJan Beulich <jbeulich@suse.com>
Mon, 29 Mar 2021 10:06:09 +0000 (12:06 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 29 Mar 2021 10:06:09 +0000 (12:06 +0200)
commitc8cad9d389b76d19449d9190122472fa465476e5
treea681f1e1c8e2db9d78bcd94ee540479e12067423
parent5cdaf100252746303a09e904b37aafea4153d12c
x86: VPSADBW's source operands are also commutative

In commit 79dec6b7baa2 ("x86-64: optimize certain commutative
VEX-encoded insns") I missed the fact that there being subtraction
involved here doesn't matter, as absolute differences get summed up.
gas/ChangeLog
gas/testsuite/gas/i386/x86-64-avx-swap-2.d
gas/testsuite/gas/i386/x86-64-sse2avx.d
gas/testsuite/gas/i386/x86-64-sse2avx.s
opcodes/ChangeLog
opcodes/i386-opc.tbl
opcodes/i386-tbl.h