Imported Upstream version 4.8.1
[platform/upstream/gcc48.git] / gcc / testsuite / gcc.target / aarch64 / test-framepointer-1.c
1 /* { dg-do run } */
2 /* { dg-options "-O2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fno-inline --save-temps" } */
3
4 #include "asm-adder-no-clobber-lr.c"
5
6 /* omit-frame-pointer is FALSE.
7    omit-leaf-frame-pointer is FALSE.
8    LR is not being clobbered in the leaf.
9
10    With no frame pointer omissions, we expect a frame record
11    for main and the leaf.  */
12
13 /* { dg-final { scan-assembler-times "stp\tx29, x30, \\\[sp, -\[0-9\]+\\\]!" 2 } } */
14
15 /* { dg-final { cleanup-saved-temps } } */