Debian Codegraph @

gcc/testsuite/gcc.target/i386/avx512bf16-vcvtpbh2ps-1.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-mavx512bf16 -O2" } */
3 /* { dg-final { scan-assembler-times "vpmovsxwd\[ \\t\]+\[^\n\]*%zmm\[0-9\](?:\n|\[ \\t\]+#)" 2 } } */
4 /* { dg-final { scan-assembler-times "vpslld\[ \t]\+\\\$16, %zmm\[0-9]\+, %zmm\[0-9]\+(?:\n|\[ \\t\]+#)" 2 } } */
5 /* { dg-final { scan-assembler-times "vpslld\[ \t]\+\\\$16, %zmm\[0-9]\+, %zmm\[0-9]\+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1 } } */
6 /* { dg-final { scan-assembler-times "vpmovsxwd\[ \\t\]+\[^\{\n\]*%ymm\[0-9\]+\[^\n\]*%zmm\[0-9\]+\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)" 1 } } */
7
8 #include <immintrin.h>
9
10 volatile __m256bh x1;
11 volatile __m512 res;
12 volatile __mmask16 m16;
13
14 void extern
15 avx512bf16_test (void)
16 {
17 res = _mm512_cvtpbh_ps (x1);
18 res = _mm512_mask_cvtpbh_ps (res, m16, x1);
19 res = _mm512_maskz_cvtpbh_ps (m16, x1);
20 }