]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/config/i386/avx512fintrin.h
AVX512F: Add missing macro for mask(z?)_scalf_s[sd] [PR 105339]
authorHongyu Wang <hongyu.wang@intel.com>
Fri, 22 Apr 2022 06:42:30 +0000 (14:42 +0800)
committerHongyu Wang <hongyu.wang@intel.com>
Mon, 25 Apr 2022 01:17:36 +0000 (09:17 +0800)
commit3c940d42701707559fabe49be99296f60fbc43e7
treed28690de2ae3f8c0f8d7743aa9d53c2ed58076d5
parentbd64885971be856a0feffb0d6eb59e62655d1285
AVX512F: Add missing macro for mask(z?)_scalf_s[sd] [PR 105339]

Add missing macro under O0 and adjust macro format for scalf
intrinsics.

gcc/ChangeLog:

PR target/105339
* config/i386/avx512fintrin.h (_mm512_scalef_round_pd):
Add parentheses for parameters and djust format.
(_mm512_mask_scalef_round_pd): Ditto.
(_mm512_maskz_scalef_round_pd): Ditto.
(_mm512_scalef_round_ps): Ditto.
(_mm512_mask_scalef_round_ps): Ditto.
(_mm512_maskz_scalef_round_ps): Ditto.
(_mm_scalef_round_sd): Use _mm_undefined_pd.
(_mm_scalef_round_ss): Use _mm_undefined_ps.
(_mm_mask_scalef_round_sd): New macro.
(_mm_mask_scalef_round_ss): Ditto.
(_mm_maskz_scalef_round_sd): Ditto.
(_mm_maskz_scalef_round_ss): Ditto.

gcc/testsuite/ChangeLog:

PR target/105339
* gcc.target/i386/sse-14.c: Add tests for new macro.
gcc/config/i386/avx512fintrin.h
gcc/testsuite/gcc.target/i386/sse-14.c