1 /* { dg-do compile } */ 2 /* { dg-options "-mavx512f -O2" } */ 3 /* { dg-final { scan-assembler-times "vpscatterqq\[ \\t\]+\[^\{\n\]*zmm\[0-9\]\[^\n\]*zmm\[0-9\]\[^\n\]*{%k\[1-7\]}(?:\n|\[ \\t\]+#)" 2 } } */ 4 5 #include <immintrin.h> 6 7 volatile __m512i src, idx; 8 volatile __mmask8 m8; 9 long long *addr; 10 11 void extern avx512f_test(void)12avx512f_test (void) 13 { 14 _mm512_i64scatter_epi64 (addr, idx, src, 8); 15 _mm512_mask_i64scatter_epi64 (addr, m8, idx, src, 8); 16 } 17