| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-mavx512fp16 -O2" } */ |
| 3 |
/* { dg-final { scan-assembler-times "vrsqrtph\[ \\t\]+\[^\{\n\]*%zmm\[0-9\]+\[^\n\r]*%zmm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */ |
| 4 |
/* { dg-final { scan-assembler-times "vrsqrtph\[ \\t\]+\[^\{\n\]*%zmm\[0-9\]+\[^\n\r]*%zmm\[0-9\]+\{%k\[0-9\]\}\[^\n\r]*(?:\n|\[ \\t\]+#)" 2 } } */ |
| 5 |
/* { dg-final { scan-assembler-times "vrsqrtph\[ \\t\]+\[^\{\n\]*%zmm\[0-9\]+\[^\n\r]*%zmm\[0-9\]+\{%k\[0-9\]\}\{z\}\[^\n\r]*(?:\n|\[ \\t\]+#)" 1 } } */ |
| 6 |
|
| 7 |
#include <immintrin.h> |
| 8 |
|
| 9 |
volatile __m512h res; |
| 10 |
volatile __m512h x1; |
| 11 |
volatile __mmask32 m32; |
| 12 |
|
| 13 |
void extern |
| 14 |
avx512f_test (void) |
| 15 |
{ |
| 16 |
res = _mm512_rsqrt_ph (x1); |
| 17 |
res = _mm512_mask_rsqrt_ph (res, m32, x1); |
| 18 |
res = _mm512_maskz_rsqrt_ph (m32, x1); |
| 19 |
} |