1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mavx512f" } */
3 /* { dg-final { scan-assembler-times "vcvtph2ps\[ \\t\]+\[^\{\n\]*%zmm\[0-9\]+(?:\n|\[ \\t\]+#)"  1 } } */
4 /* { dg-final { scan-assembler-times "vcvtph2ps\[ \\t\]+\[^\{\n\]*%zmm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)"  1 } } */
5 /* { dg-final { scan-assembler-times "vcvtph2ps\[ \\t\]+\[^\{\n\]*%zmm\[0-9\]+\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)"  1 } } */
6 /* { dg-final { scan-assembler-times "vcvtph2ps\[ \\t\]+\[^\{\n\]*\{sae\}\[^\n\]*%zmm\[0-9\]+(?:\n|\[ \\t\]+#)"  1 } } */
7 /* { dg-final { scan-assembler-times "vcvtph2ps\[ \\t\]+\[^\{\n\]*\{sae\}\[^\n\]*%zmm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1 } } */
8 /* { dg-final { scan-assembler-times "vcvtph2ps\[ \\t\]+\[^\{\n\]*\{sae\}\[^\n\]*%zmm\[0-9\]+\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)" 1 } } */
9 
10 #include <immintrin.h>
11 
12 volatile __m256i x;
13 volatile __m512 y;
14 
15 void extern
avx512f_test(void)16 avx512f_test (void)
17 {
18   y = _mm512_cvtph_ps (x);
19   y = _mm512_mask_cvtph_ps (y, 4, x);
20   y = _mm512_maskz_cvtph_ps (6, x);
21   y = _mm512_cvt_roundph_ps (x, _MM_FROUND_NO_EXC);
22   y = _mm512_mask_cvt_roundph_ps (y, 4, x, _MM_FROUND_NO_EXC);
23   y = _mm512_maskz_cvt_roundph_ps (6, x, _MM_FROUND_NO_EXC);
24 }
25