blob: 60430843c58c9ae4b9346d48e2d8bfa7cbe733dc [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O2 -mavx -ftree-vectorize -fdump-tree-vect-details" } */
void test1(short * __restrict__ x, short * __restrict__ y, short * __restrict__ z)
{
int i;
for (i=127; i>=0; i--) {
x[i] = y[127-i] + z[127-i];
}
}
/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */