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

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

/* omit-frame-pointer is TRUE.
   omit-leaf-frame-pointer is true, but irrelevant due to omit-frame-pointer.
   LR is 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\]+\\\]!" } } */