aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vect/vect-align-4.c
blob: 82bbf07c568961f20cd17e5f088f6a2bd837391e (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 } */
/* { dg-add-options bind_pic_locally } */

__attribute__((aligned (8))) int a[2048] = {};

void
f1 (void)
{
  for (int i = 0; i < 2048; i++)
    a[i]++;
}

/* { dg-final { scan-tree-dump-not "Vectorizing an unaligned access" "vect" } } */
/* { dg-final { scan-tree-dump-not "Alignment of access forced using peeling" "vect" } } */