| 1 |
/* Verify: |
| 2 |
* -fno-omit-frame-pointer -fsanitize=shadow-call-stack -fno-exceptions -ffixed-x18. |
| 3 |
* without outgoing. |
| 4 |
* total frame size <= 512 but > 256. |
| 5 |
* callee-saved reg: x29, x30. |
| 6 |
* optimized code should use "stp x29, x30, [sp]" to save frame chain. |
| 7 |
* optimized code should use "ldr x29, [sp]" to restore x29 only. */ |
| 8 |
|
| 9 |
/* { dg-do compile } */ |
| 10 |
/* { dg-options "-O2 -fno-omit-frame-pointer -fsanitize=shadow-call-stack -fno-exceptions -ffixed-x18 --save-temps -fno-stack-protector" } */ |
| 11 |
|
| 12 |
#include "test_frame_common.h" |
| 13 |
|
| 14 |
t_frame_pattern (func1, 400, ) |
| 15 |
|
| 16 |
/* { dg-final { scan-assembler-times {stp\tx29, x30, \[sp\]} 1 } } */ |
| 17 |
/* { dg-final { scan-assembler {ldr\tx29, \[sp\]} } } */ |
| 18 |
|