]> gcc.gnu.org Git - gcc.git/commit
x86: {,v}psadbw have commutative source operands
authorJan Beulich <jbeulich@suse.com>
Fri, 3 Jun 2022 08:21:21 +0000 (10:21 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 3 Jun 2022 08:21:21 +0000 (10:21 +0200)
commitd4630b65d12046ecc477d382f5a2094b8250b21b
tree757bd30b5ffa30a6b46d9a963de33126b3e79a0e
parentbe2861fe8c527a5952257462ceca899bb43b1452
x86: {,v}psadbw have commutative source operands

Like noticed for gas as well (binutils-gdb commit c8cad9d389b7), the
"absolute difference" aspect of the insns makes their source operands
commutative.

gcc/

* config/i386/mmx.md (mmx_psadbw): Convert to expander.
(*mmx_psadbw): New. Mark as commutative.
* config/i386/sse.md (<sse2_avx2>_psadbw): Convert to expander.
(*<sse2_avx2>_psadbw): New. Mark as commutative.
gcc/config/i386/mmx.md
gcc/config/i386/sse.md
This page took 0.062089 seconds and 5 git commands to generate.