/* { dg-do compile } */ /* { dg-options "-mavx512fp16 -O2" } */ /* { dg-final { scan-assembler-times "vrsqrtph\[ \\t\]+\[^\{\n\]*%zmm\[0-9\]+\[^\n\r]*%zmm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */ /* { dg-final { scan-assembler-times "vrsqrtph\[ \\t\]+\[^\{\n\]*%zmm\[0-9\]+\[^\n\r]*%zmm\[0-9\]+\{%k\[0-9\]\}\[^\n\r]*(?:\n|\[ \\t\]+#)" 2 } } */ /* { 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 } } */ #include volatile __m512h res; volatile __m512h x1; volatile __mmask32 m32; void extern avx512f_test (void) { res = _mm512_rsqrt_ph (x1); res = _mm512_mask_rsqrt_ph (res, m32, x1); res = _mm512_maskz_rsqrt_ph (m32, x1); }