This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] x86: _mm512_set1_p[sd]
- From: Kirill Yukhin <kirill dot yukhin at gmail dot com>
- To: Ulrich Drepper <drepper at gmail dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 24 Mar 2014 09:50:42 +0400
- Subject: Re: [PATCH] x86: _mm512_set1_p[sd]
- Authentication-results: sourceware.org; auth=none
- References: <8738idzj52 dot fsf at x240 dot local dot i-did-not-set--mail-host-address--so-tickle-me>
Hello Ulrich,
On 19 Mar 22:41, Ulrich Drepper wrote:
> Another set of functions missing are those to set all elements of a
> 512-bit vector to the same float or double value. I think the patch
> below uses the optimal code sequence for that. The patch requires the
> previous patch introducing _mm*_undefined_*.
>
>
> 2014-03-19 Ulrich Drepper <drepper@gmail.com>
>
> * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
> _mm512_set1_pd.
Your patch is correct IMHO, but maybe it worst to add all missing
`mm512_set1*' stuff?
According to trunk and [1] we're still missing (beside mentioned by you)
_mm512_set1_epi16 and _mm512_set1_epi8 broadcasts.
[1] - http://software.intel.com/sites/landingpage/IntrinsicsGuide/
--
Thanks, K