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

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

/* omit-frame-pointer is TRUE.
   omit-leaf-frame-pointer is false, but irrelevant due to omit-frame-pointer.
   LR is not being clobbered in the leaf.

   Since we asked to have no frame pointers anywhere, we expect no frame
   record in main or the leaf.  */

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