aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/i386/avx2-i32gatherps256-1.c
blob: f09a0ff32f6a9c7b6e086379502c5c92be59cc4c (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 "vgatherdps\[ \\t\]+\[^\n\]*ymm\[0-9\]\[^\n\]*ymm\[0-9\]\[^\n\]*ymm\[0-9\]" } } */

#include <immintrin.h>

__m256 x;
float *base;
__m256i idx;

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