Stop only if there aren't any usable algorithms
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / avx512f-i64scatterd512-1.c
bloba2f5275d67ea2d870ba976b068c2aadc02acfbd9
1 /* { dg-do compile } */
2 /* { dg-options "-mavx512f -O2" } */
3 /* { dg-final { scan-assembler-times "vpscatterqd\[ \\t\]+\[^\n\]*ymm\[0-9\]\[^\n\]*zmm\[0-9\]\[^\n\]*{%k\[1-7\]}" 2 } } */
5 #include <immintrin.h>
7 volatile __m256i src;
8 volatile __m512i idx;
9 volatile __mmask8 m8;
10 int *addr;
12 void extern
13 avx512f_test (void)
15 _mm512_i64scatter_epi32 (addr, idx, src, 8);
16 _mm512_mask_i64scatter_epi32 (addr, m8, idx, src, 8);