Stop only if there aren't any usable algorithms
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / avx512pf-vscatterpf1dpd-1.c
blob04c367ca3f0f84db740a717876a4f00955f5b4bb
1 /* { dg-do compile } */
2 /* { dg-options "-mavx512pf -O2" } */
3 /* { dg-final { scan-assembler-times "vscatterpf1dpd\[ \\t\]+\[^\n\]*%ymm\[0-9\]" 2 } } */
4 /* { dg-final { scan-assembler-times "vscatterpf1dpd\[ \\t\]+\[^\n\]*\{%k\[1-7\]" 1 } } */
6 #include <immintrin.h>
8 volatile __m256i idx;
9 volatile __mmask8 m8;
10 void *base;
12 void extern
13 avx512pf_test (void)
15 _mm512_prefetch_i32scatter_pd (base, idx, 8, _MM_HINT_T1);
16 _mm512_mask_prefetch_i32scatter_pd (base, m8, idx, 8, _MM_HINT_ET1);