| 1 |
/* { dg-do compile { target { ! ia32 } } } */ |
| 2 |
/* { dg-require-effective-target masm_intel } */ |
| 3 |
/* { dg-options "-O2 -march=x86-64-v3 -mamx-avx512 -masm=intel" } */ |
| 4 |
/* { dg-final { scan-assembler-times "tcvtrowd2ps\[ \\t]+\[^\n\]*zmm\[0-9\]+\[^\n\]*tmm1+\[^\n\]*" 2 } } */ |
| 5 |
/* { dg-final { scan-assembler-times "tcvtrowps2bf16h\[ \\t]+\[^\n\]*zmm\[0-9\]+\[^\n\]*tmm1+\[^\n\]*" 2 } } */ |
| 6 |
/* { dg-final { scan-assembler-times "tcvtrowps2bf16l\[ \\t]+\[^\n\]*zmm\[0-9\]+\[^\n\]*tmm1+\[^\n\]*" 2 } } */ |
| 7 |
/* { dg-final { scan-assembler-times "tcvtrowps2phh\[ \\t]+\[^\n\]*zmm\[0-9\]+\[^\n\]*tmm1+\[^\n\]*" 2 } } */ |
| 8 |
/* { dg-final { scan-assembler-times "tcvtrowps2phl\[ \\t]+\[^\n\]*zmm\[0-9\]+\[^\n\]*tmm1+\[^\n\]*" 2 } } */ |
| 9 |
/* { dg-final { scan-assembler-times "tilemovrow\[ \\t]+\[^\n\]*zmm\[0-9\]+\[^\n\]*tmm1+\[^\n\]*" 2 } } */ |
| 10 |
#include <immintrin.h> |
| 11 |
|
| 12 |
__m512 a; |
| 13 |
__m512bh b; |
| 14 |
__m512h c; |
| 15 |
|
| 16 |
void TEST () |
| 17 |
{ |
| 18 |
a = _tile_cvtrowd2ps (1, 1); |
| 19 |
a = _tile_cvtrowd2psi (1, 2); |
| 20 |
b = _tile_cvtrowps2bf16h (1, 3); |
| 21 |
b = _tile_cvtrowps2bf16hi (1, 4); |
| 22 |
b = _tile_cvtrowps2bf16l (1, 5); |
| 23 |
b = _tile_cvtrowps2bf16li (1, 6); |
| 24 |
c = _tile_cvtrowps2phh (1, 7); |
| 25 |
c = _tile_cvtrowps2phhi (1, 8); |
| 26 |
c = _tile_cvtrowps2phl (1, 9); |
| 27 |
c = _tile_cvtrowps2phli (1, 10); |
| 28 |
a = _tile_movrow (1, 11); |
| 29 |
a = _tile_movrowi (1, 12); |
| 30 |
} |