aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/aarch64/test-framepointer-1.c
blob: b1b5d6aa6eef6840262a5c40577b1791efa6abea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do run } */
/* { dg-options "-O2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fno-inline --save-temps" } */

#include "asm-adder-no-clobber-lr.c"

/* omit-frame-pointer is FALSE.
   omit-leaf-frame-pointer is FALSE.
   LR is not being clobbered in the leaf.

   With no frame pointer omissions, we expect a frame record
   for main and the leaf.  */

/* { dg-final { scan-assembler-times "stp\tx29, x30, \\\[sp, -\[0-9\]+\\\]!" 2 } } */