gcc/testsuite/g++.target/i386/pr122446-1.C
raw| 1 | /* { dg-do compile { target { ! ia32 } } } */ |
| 2 | /* { dg-options "-mamx-tile -mamx-int8 -O0" } */ |
| 3 | /* { dg-final { scan-assembler "tdpbssd\[ \\t]+\[^\n\]*%tmm2+\[^\n\]*%tmm1+\[^\n\]*%tmm0" } } */ |
| 4 | |
| 5 | #include <immintrin.h> |
| 6 | |
| 7 | template <int hello, int crazy, int gcc> |
| 8 | struct dpbssd |
| 9 | { |
| 10 | void operator()() { _tile_dpbssd(hello, crazy, gcc); } |
| 11 | }; |
| 12 | |
| 13 | void f() |
| 14 | { |
| 15 | dpbssd<0, 1, 2>()(); |
| 16 | } |
| 17 |