2014-04-15 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / test-framepointer-8.c
blobc09b687597baf1b18a1fd13ede05328d8d3929a3
1 /* { dg-do run } */
2 /* { dg-options "-O2 -fno-omit-frame-pointer -momit-leaf-frame-pointer -fno-inline --save-temps" } */
4 #include "asm-adder-clobber-lr.c"
6 /* omit-frame-pointer is FALSE.
7 omit-leaf-frame-pointer is TRUE.
8 LR is being clobbered in the leaf.
10 Unless we are removing all frame records (which we aren't), it's
11 not OK to remove the frame record for a leaf where LR is clobbered.
12 Therefore, we expect a frame record in main and leaf. */
14 /* { dg-final { scan-assembler-times "stp\tx29, x30, \\\[sp, -\[0-9\]+\\\]!" 2 } } */
16 /* { dg-final { cleanup-saved-temps } } */