Rebase.
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / test_frame_6.c
blobb5ea7ee08ce09e864be89a2ebf059af12c0f000c
1 /* Verify:
2 * -fomit-frame-pointer.
3 * without outgoing.
4 * total frame size > 512.
5 * number of callee-saved reg == 1.
6 * split stack adjustment into two subtractions.
7 the second subtraction should use "str !". */
9 /* { dg-do run } */
10 /* { dg-options "-O2 -fomit-frame-pointer --save-temps" } */
12 #include "test_frame_common.h"
14 t_frame_pattern (test6, 700, )
15 t_frame_run (test6)
17 /* { dg-final { scan-assembler-times "str\tx30, \\\[sp, -\[0-9\]+\\\]!" 2 } } */
18 /* { dg-final { scan-assembler-times "ldr\tx30, \\\[sp\\\], \[0-9\]+" 3 } } */
20 /* { dg-final { cleanup-saved-temps } } */