Debian Codegraph @

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

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