| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-require-effective-target section_anchors } */ |
| 3 |
/* { dg-require-effective-target vect_int } */ |
| 4 |
|
| 5 |
#define N 32 |
| 6 |
|
| 7 |
/* Clone of section-anchors-vect-70.c having nested struct. */ |
| 8 |
|
| 9 |
struct S |
| 10 |
{ |
| 11 |
int e[N]; |
| 12 |
}; |
| 13 |
|
| 14 |
static struct A { |
| 15 |
int p1, p2; |
| 16 |
struct S s; |
| 17 |
} a, b, c; |
| 18 |
|
| 19 |
int foo(void) |
| 20 |
{ |
| 21 |
for (int i = 0; i < N; i++) |
| 22 |
a.s.e[i] = b.s.e[i] + c.s.e[i]; |
| 23 |
|
| 24 |
return a.s.e[0]; |
| 25 |
} |
| 26 |
|
| 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*-*-* } } } */ |