blob: 29d00d75ac9b8697bc955f3ba906f39afe02f9a6 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O2 -ftree-vectorize -ffast-math -march=knl" } */
/* { dg-final { scan-assembler-times "vpermpd\[ \\t\]+\[^\{\n\]*%zmm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */
#define N 1024
double d1[N] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__)));
double d2[N] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__)));
void foo ()
{
int j;
for (j=0; j<N; j++)
d1[j] += d2[N-j];
}