x86: harmonize __builtin_ia32_psadbw*() types
authorJan Beulich <jbeulich@suse.com>
Tue, 7 Jun 2022 07:18:28 +0000 (09:18 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 7 Jun 2022 07:18:28 +0000 (09:18 +0200)
commit6bb0776e104b5ca5a7bed9f333a9690174b4d00b
treefc12471e526f493e6c92ad2fc493795284c27298
parent76e3d60c16dc5ea31d2e83aff9735d53a0a275d1
x86: harmonize __builtin_ia32_psadbw*() types

The 64-bit, 128-bit, and 512-bit variants have V<n>DI return type, in
line with instruction behavior. Make the 256-bit builtin match, thus
also making it match the insn it expands to (using VI8_AVX2_AVX512BW).

gcc/

* config/i386/i386-builtin.def (__builtin_ia32_psadbw256):
Change type.
* config/i386/i386-builtin-types.def: New function type
(V4DI, V32QI, V32QI).
* config/i386/i386-expand.cc (ix86_expand_args_builtin): Handle
V4DI_FTYPE_V32QI_V32QI.
gcc/config/i386/i386-builtin-types.def
gcc/config/i386/i386-builtin.def
gcc/config/i386/i386-expand.cc