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