Re: [PATCH v2] x86: {,v}psadbw have commutative source operands

2022-06-02 Thread Uros Bizjak via Gcc-patches
On Thu, Jun 2, 2022 at 5:00 PM Jan Beulich wrote: > > 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. > (

[PATCH v2] x86: {,v}psadbw have commutative source operands

2022-06-02 Thread Jan Beulich via Gcc-patches
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.m