[AArch64] Fix SVE testsuite failures for ILP32 (PR 83846)
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / pr60580_1.c
blobee64197fcd387ec68e0d407b37ab5e4fdf58f689
1 /* { dg-do compile } */
2 /* { dg-options "-O0 -fomit-frame-pointer -fno-inline --save-temps" } */
4 void
5 func_leaf (void)
7 int a = 0;
10 void
11 func_no_leaf (void)
13 int a = 0;
14 func_leaf ();
17 void
18 func1 (void)
20 int a = 0;
21 func_no_leaf ();
25 * This function calls XXX(), which modifies SP. This is incompatible to
26 * -fomit-frame-pointer generated code as SP is used to access the frame.
28 __attribute__ ((optimize("no-omit-frame-pointer")))
29 void
30 func2 (void)
32 int a = 0;
33 func_no_leaf ();
36 void
37 func3 (void)
39 int a = 0;
40 func_no_leaf ();
43 /* { dg-final { scan-assembler-times "stp\tx29, x30, \\\[sp, -\[0-9\]+\\\]!" 1 } } */