diff options
Diffstat (limited to 'gcc-4.8/gcc/testsuite/gcc.target/aarch64/test-framepointer-1.c')
-rw-r--r-- | gcc-4.8/gcc/testsuite/gcc.target/aarch64/test-framepointer-1.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc-4.8/gcc/testsuite/gcc.target/aarch64/test-framepointer-1.c b/gcc-4.8/gcc/testsuite/gcc.target/aarch64/test-framepointer-1.c new file mode 100644 index 000000000..e44ca6d4c --- /dev/null +++ b/gcc-4.8/gcc/testsuite/gcc.target/aarch64/test-framepointer-1.c @@ -0,0 +1,15 @@ +/* { dg-do run } */ +/* { dg-options "-O2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fno-inline --save-temps" } */ + +#include "asm-adder-no-clobber-lr.c" + +/* omit-frame-pointer is FALSE. + omit-leaf-frame-pointer is FALSE. + LR is not 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 } } */ |