gcc/testsuite/gcc.target/aarch64/auto-init-padding-2.c
raw| 1 | /* Verify pattern initialization for structure type automatic variables with |
| 2 | padding. */ |
| 3 | /* { dg-do compile } */ |
| 4 | /* { dg-options "-O -ftrivial-auto-var-init=pattern" } */ |
| 5 | |
| 6 | struct test_aligned { |
| 7 | int internal1; |
| 8 | long long internal2; |
| 9 | } __attribute__ ((aligned(64))); |
| 10 | |
| 11 | int foo () |
| 12 | { |
| 13 | struct test_aligned var; |
| 14 | return var.internal1; |
| 15 | } |
| 16 | |
| 17 | /* { dg-final { scan-assembler-times {stp\tq[0-9]+, q[0-9]+,} 2 } } */ |