Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/auto-init-padding-1.c

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