2018-03-15 Steven G. Kargl <kargl@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / test_frame_4.c
blobed13487a094ad14e5177acc57e4025c45cc80be9
1 /* Verify:
2 * -fomit-frame-pointer.
3 * without outgoing.
4 * total frame size <= 512 but > 256.
5 * number of callee-save reg >= 2.
6 * we can use "stp !" to optimize stack adjustment. */
8 /* { dg-do run } */
9 /* { dg-options "-O2 -fomit-frame-pointer --save-temps" } */
11 #include "test_frame_common.h"
13 t_frame_pattern (test4, 400, "x19")
14 t_frame_run (test4)
16 /* { dg-final { scan-assembler-times "stp\tx19, x30, \\\[sp, -\[0-9\]+\\\]!" 1 } } */
17 /* { dg-final { scan-assembler "ldp\tx19, x30, \\\[sp\\\], \[0-9\]+" } } */