blob: 447b32df97a5ccf2c80b9ef71cb5b5a191535caf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
/* { dg-do compile } */
/* { dg-require-effective-target vect_int } */
/* { dg-require-effective-target vect_load_lanes } */
void
f (int *__restrict a, int *__restrict b)
{
for (int i = 0; i < 96; ++i)
a[i] = b[i * 3] + b[i * 3 + 1] + b[i * 3 + 2];
}
/* { dg-final { scan-tree-dump-not "Data access with gaps" "vect" } } */
/* { dg-final { scan-tree-dump-not "epilog loop required" "vect" { xfail vect_variable_length } } } */
|