1 /* { dg-do compile } */ 2 /* { dg-options "-mavx2 -O2" } */ 3 /* { dg-final { scan-assembler "vgatherdpd\[ \\t\]+\[^\n\]*ymm\[0-9\]\[^\n\]*xmm\[0-9\]\[^\n\]*ymm\[0-9\]" } } */ 4 5 #include <immintrin.h> 6 7 __m256d x; 8 double *base; 9 __m128i idx; 10 11 void extern avx2_test(void)12avx2_test (void) 13 { 14 x = _mm256_mask_i32gather_pd (x, base, idx, x, 1); 15 } 16