PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr65310.c
blob57e90d45c9fa3c0899f078d8d81cebbc72e04fff
1 /* { dg-do compile } */
3 struct a
5 int a[100];
6 };
7 typedef struct a b __attribute__ ((aligned (32)));
8 typedef struct a c __attribute__ ((aligned (4)));
10 int t(b *a)
12 int i;
13 c *ptr = a;
14 for (i=0;i<100;i++)
15 ptr->a[i]++;
18 /* The memory access is through a pointer of type c which means
19 *ptr is not aligned. */
21 /* { dg-final { scan-tree-dump "can't force alignment" "vect" { xfail vect_element_align_preferred } } } */
22 /* { dg-final { scan-tree-dump-not "misalign = 0" "vect" { xfail vect_element_align_preferred } } } */