aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vect/pr100756.c
blob: 7847f3eb8804a7989dd6587064fa540f4faf3489 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-require-effective-target vect_int } */

int
foo (int * restrict a, int n)
{
  int i, result = 0;

  a = __builtin_assume_aligned (a, __BIGGEST_ALIGNMENT__);
  for (i = 0; i < n * 16; i++)
    result += a[i];
  return result;
}

/* { dg-final { scan-tree-dump-not "epilog loop required" "vect" } } */