| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-mavx512fp16 -O2" } */ |
| 3 |
/* { dg-final { scan-assembler-times "vcmpsh\[ \\t\]+\\\$3\[^\n\r]*%xmm\[0-9\]+\[^\n\r]*%xmm\[0-9\]+\[^\n\r]*%k\[0-9\]\[^\n\r]*(?:\n|\[ \\t\]+#)" 2 } } */ |
| 4 |
/* { dg-final { scan-assembler-times "vcmpsh\[ \\t\]+\[^\{\n\]*\\\$4\[^\n\r]*%xmm\[0-9\]+\[^\n\r]*%xmm\[0-9\]+\[^\n\r]*%k\[0-9\]\{%k\[0-9\]\}\[^\n\r]*(?:\n|\[ \\t\]+#)" 2 } } */ |
| 5 |
/* { dg-final { scan-assembler-times "vcmpsh\[ \\t\]+\\\$3\[^\n\r]*\{sae\}\[^\n\r]*%xmm\[0-9\]+\[^\n\r]*%xmm\[0-9\]+\[^\n\r]*%k\[0-9\]\[^\n\r]*(?:\n|\[ \\t\]+#)" 1 } } */ |
| 6 |
/* { dg-final { scan-assembler-times "vcmpsh\[ \\t\]+\[^\{\n\]*\\\$4\[^\n\r]*\{sae\}\[^\n\r\]*%xmm\[0-9\]+\[^\n\r]*%xmm\[0-9\]+\[^\n\r]*%k\[0-9\]\{%k\[0-9\]\}\[^\n\r]*(?:\n|\[ \\t\]+#)" 1 } } */ |
| 7 |
|
| 8 |
#include <immintrin.h> |
| 9 |
|
| 10 |
volatile __mmask8 res, res1, res2; |
| 11 |
volatile __m128h x1, x2; |
| 12 |
volatile __mmask8 m8; |
| 13 |
|
| 14 |
void extern |
| 15 |
avx512f_test (void) |
| 16 |
{ |
| 17 |
res = _mm_cmp_sh_mask (x1, x2, 3); |
| 18 |
res = _mm_mask_cmp_sh_mask (m8, x1, x2, 4); |
| 19 |
res = _mm_cmp_round_sh_mask (x1, x2, 3, 8); |
| 20 |
res1 = _mm_mask_cmp_round_sh_mask (m8, x1, x2, 4, 8); |
| 21 |
} |