gcc/testsuite/gcc.target/aarch64/ldp_stp_unaligned_2.c
raw| 1 | /* { dg-options "-O2 -fomit-frame-pointer -fno-stack-protector" } */ |
| 2 | |
| 3 | /* Check that we split unaligned LDP/STP into base and aligned offset. */ |
| 4 | |
| 5 | typedef struct |
| 6 | { |
| 7 | int a, b, c, d, e; |
| 8 | } S; |
| 9 | |
| 10 | void foo (S *); |
| 11 | |
| 12 | void test (int x) |
| 13 | { |
| 14 | S s = { .a = x }; |
| 15 | foo (&s); |
| 16 | } |
| 17 | |
| 18 | /* { dg-final { scan-assembler-not "mov\tx\[0-9\]+, sp" } } */ |