aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/aarch64/test_fp_attribute_2.c
blob: 675091f841ead5c39141d3887d6a72edaf055a5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* { dg-do compile } */
/* { dg-options "-O0 -fomit-frame-pointer -fno-inline --save-temps" } */

void
leaf (void)
{
  int a = 0;
}

__attribute__ ((optimize("no-omit-frame-pointer")))
void
non_leaf_1 (void)
{
  leaf ();
}

__attribute__ ((optimize("no-omit-frame-pointer")))
void
non_leaf_2 (void)
{
  leaf ();
}

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

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