1 /* { dg-do compile } */
2 /* { dg-options "-mavx512bf16 -O2" } */
3 /* { dg-final { scan-assembler-times "vcvtne2ps2bf16\[ \\t\]+\[^\{\n\]*%zmm\[0-9\]+\[^\n\r]*%zmm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */
4 /* { dg-final { scan-assembler-times "vcvtne2ps2bf16\[ \\t\]+\[^\{\n\]*%zmm\[0-9\]+\[^\n\r]*%zmm\[0-9\]+\{%k\[0-9\]\}\[^\n\r]*(?:\n|\[ \\t\]+#)" 2 } } */
5 /* { dg-final { scan-assembler-times "vcvtne2ps2bf16\[ \\t\]+\[^\{\n\]*%zmm\[0-9\]+\[^\n\r]*%zmm\[0-9\]+\{%k\[0-9\]\}\{z\}\[^\n\r]*(?:\n|\[ \\t\]+#)" 1 } } */
6 
7 #include <immintrin.h>
8 
9 volatile __m512bh res;
10 volatile __m512 x1, x2;
11 volatile __mmask32 m32;
12 
13 void extern
avx512bf16_test(void)14 avx512bf16_test (void)
15 {
16   res = _mm512_cvtne2ps_pbh (x1, x2);
17   res = _mm512_mask_cvtne2ps_pbh (res, m32, x1, x2);
18   res = _mm512_maskz_cvtne2ps_pbh (m32, x1, x2);
19 }
20