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

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

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

   Unless we are removing all frame records, it's OK to remove the frame
   record for a leaf where LR is not clobbered.  Therefore, we expect a
   frame record only in main.  */

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

/* { dg-final { cleanup-saved-temps } } */