aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/i386/avx2-i32gatherd256-3.c
blob: d0c86429449ad791a9481c6c3d91a2891fc0e2ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-options "-mavx2 -O2" } */
/* { dg-final { scan-assembler "vpgatherdd\[ \\t\]+\[^\n\]*ymm\[0-9\]\[^\n\]*ymm\[0-9\]\[^\n\]*ymm\[0-9\]" } } */

#include <immintrin.h>

__m256i x;
int *base;
__m256i idx;

void extern
avx2_test (void)
{
  x = _mm256_mask_i32gather_epi32 (x, base, idx, x, 1);
}