]> git.ipfire.org Git - thirdparty/gcc.git/commit
x86/AVX512: use VMOVDDUP for broadcast to V2DF
authorJan Beulich <jbeulich@suse.com>
Thu, 15 Jun 2023 08:52:35 +0000 (10:52 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 15 Jun 2023 08:52:35 +0000 (10:52 +0200)
commita4df0ce78d6f1beee5d2ef53e2a1a9f3fc377100
tree711185aaecfb7a945b180aca89d3d5b7aebc2dbf
parenta5e06412e783ad42a39f0b66797654b3f8f2056f
x86/AVX512: use VMOVDDUP for broadcast to V2DF

Like is already the case for the AVX/AVX2 form, VMOVDDUP - acting on
double precision floating values - is more appropriate to use here, and
it can also result in shorter insn encodings when source is memory or
%xmm0...%xmm7, and no masking is applied (in allowing a 2-byte VEX
prefix then instead of a 3-byte one).

gcc/

* config/i386/sse.md (<avx512>_vec_dup<mode><mask_name>): Use
vmovddup.
gcc/config/i386/sse.md