1/* { dg-do compile } */ 2/* { dg-options "-mavx512pf -O2" } */ 3/* { dg-final { scan-assembler-times "vscatterpf0qps\[ \\t\]+\[^\{\n\]*%zmm\[0-9\]+\[^\n\]*\\)\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 2 } } */ 4 5#include <immintrin.h> 6 7volatile __m512i idx; 8volatile __mmask8 m8; 9int *base; 10 11void extern 12avx512pf_test (void) 13{ 14 _mm512_prefetch_i64scatter_ps (base, idx, 8, _MM_HINT_T0); 15 _mm512_mask_prefetch_i64scatter_ps (base, m8, idx, 8, _MM_HINT_ET0); 16} 17