PR tree-optimization/84740
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / aligned-section-anchors-vect-72.c
blob873fabe9f5294c7153299e1414d9185687078ff5
1 /* { dg-do compile } */
2 /* { dg-require-effective-target section_anchors } */
3 /* { dg-require-effective-target vect_int } */
5 #define N 32
7 /* Clone of section-anchors-vect-70.c having nested struct. */
9 struct S
11 int e[N];
14 static struct A {
15 int p1, p2;
16 struct S s;
17 } a, b, c;
19 int foo(void)
21 for (int i = 0; i < N; i++)
22 a.s.e[i] = b.s.e[i] + c.s.e[i];
24 return a.s.e[0];
27 /* { dg-final { scan-ipa-dump-times "Increasing alignment of decl" 0 "increase_alignment" { target aarch64*-*-* } } } */
28 /* { dg-final { scan-ipa-dump-times "Increasing alignment of decl" 0 "increase_alignment" { target powerpc64*-*-* } } } */
29 /* { dg-final { scan-ipa-dump-times "Increasing alignment of decl" 3 "increase_alignment" { target arm*-*-* } } } */