Debian Codegraph @

gcc/testsuite/g++.target/i386/pr122446-amxbf16.C

raw
1 /* { dg-do compile { target { ! ia32 } } } */
2 /* { dg-options "-mamx-tile -mamx-bf16 -O0" } */
3 /* { dg-final { scan-assembler "tdpbf16ps\[ \\t]+%tmm2,\[ \\t\]*%tmm1,\[ \\t\]*%tmm0" } } */
4
5 #include <immintrin.h>
6
7 template <int dst, int src1, int src2>
8 struct dpbf16ps
9 {
10 void operator()() { _tile_dpbf16ps(dst, src1, src2); }
11 };
12
13 void test_amx_bf16()
14 {
15 dpbf16ps<0, 1, 2>()();
16 }