]> git.ipfire.org Git - thirdparty/gcc.git/commit
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>
Wed, 27 Apr 2022 05:12:24 +0000 (13:12 +0800)
commit5e53c8a04d182ead8b59682802478de3dfc0361b
treef8876373162d7ab89c456f2fda1cc44e403cf5a2
parent4bc1a710334b828338c9124beaa75ade471c277a
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.

(cherry picked from commit 3c940d42701707559fabe49be99296f60fbc43e7)
gcc/config/i386/avx512fintrin.h
gcc/testsuite/gcc.target/i386/sse-14.c