gcc/testsuite/gcc.target/aarch64/arm_align_max_stack_pwr.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O1" } */ |
| 3 | |
| 4 | #define align (1ul << __ARM_ALIGN_MAX_STACK_PWR) |
| 5 | extern void foo (int *x); |
| 6 | extern int bar (int x); |
| 7 | |
| 8 | int |
| 9 | dummy () |
| 10 | { |
| 11 | int x __attribute__ ((aligned (align))); |
| 12 | int result; |
| 13 | |
| 14 | foo (&x); |
| 15 | result = bar (x); |
| 16 | |
| 17 | return result; |
| 18 | } |
| 19 | |
| 20 | /* { dg-final { scan-assembler "and\tx\[0-9\]+, x\[0-9\]+, -65536" } } */ |