| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-mavxneconvert -O2" } */ |
| 3 |
/* { dg-final { scan-assembler-times "vbcstnebf162ps\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */ |
| 4 |
/* { dg-final { scan-assembler-times "vbcstnebf162ps\[ \\t\]+\[^\{\n\]*%ymm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */ |
| 5 |
/* { dg-final { scan-assembler-times "vbcstnesh2ps\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */ |
| 6 |
/* { dg-final { scan-assembler-times "vbcstnesh2ps\[ \\t\]+\[^\{\n\]*%ymm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */ |
| 7 |
/* { dg-final { scan-assembler-times "vcvtneebf162ps\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */ |
| 8 |
/* { dg-final { scan-assembler-times "vcvtneebf162ps\[ \\t\]+\[^\{\n\]*%ymm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */ |
| 9 |
/* { dg-final { scan-assembler-times "vcvtneeph2ps\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */ |
| 10 |
/* { dg-final { scan-assembler-times "vcvtneeph2ps\[ \\t\]+\[^\{\n\]*%ymm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */ |
| 11 |
/* { dg-final { scan-assembler-times "vcvtneobf162ps\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */ |
| 12 |
/* { dg-final { scan-assembler-times "vcvtneobf162ps\[ \\t\]+\[^\{\n\]*%ymm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */ |
| 13 |
/* { dg-final { scan-assembler-times "vcvtneoph2ps\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */ |
| 14 |
/* { dg-final { scan-assembler-times "vcvtneoph2ps\[ \\t\]+\[^\{\n\]*%ymm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */ |
| 15 |
/* { dg-final { scan-assembler-times "\{vex\} vcvtneps2bf16x\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\[^\n\r]*%xmm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */ |
| 16 |
/* { dg-final { scan-assembler-times "\{vex\} vcvtneps2bf16y\[ \\t\]+\[^\{\n\]*%ymm\[0-9\]+\[^\n\r]*%xmm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */ |
| 17 |
#include <immintrin.h> |
| 18 |
|
| 19 |
volatile __m128 x1; |
| 20 |
volatile __m256 x2; |
| 21 |
volatile __m128bh res1, res2; |
| 22 |
const void *a; |
| 23 |
__m128bh *b; |
| 24 |
__m256bh *c; |
| 25 |
__m128h *d; |
| 26 |
__m256h *e; |
| 27 |
|
| 28 |
void extern |
| 29 |
avx_ne_convert_test (void) |
| 30 |
{ |
| 31 |
x1 = _mm_bcstnebf16_ps (a); |
| 32 |
x2 = _mm256_bcstnebf16_ps (a); |
| 33 |
x1 = _mm_bcstnesh_ps (a); |
| 34 |
x2 = _mm256_bcstnesh_ps (a); |
| 35 |
x1 = _mm_cvtneebf16_ps (b); |
| 36 |
x2 = _mm256_cvtneebf16_ps (c); |
| 37 |
x1 = _mm_cvtneeph_ps (d); |
| 38 |
x2 = _mm256_cvtneeph_ps (e); |
| 39 |
x1 = _mm_cvtneobf16_ps (b); |
| 40 |
x2 = _mm256_cvtneobf16_ps (c); |
| 41 |
x1 = _mm_cvtneoph_ps (d); |
| 42 |
x2 = _mm256_cvtneoph_ps (e); |
| 43 |
res1 = _mm_cvtneps_avx_pbh (x1); |
| 44 |
res2 = _mm256_cvtneps_avx_pbh (x2); |
| 45 |
} |