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

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

/* omit-frame-pointer is FALSE.
   omit-leaf-frame-pointer is FALSE.
   LR is 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 } } */

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