libstdc++: Move gcc.gnu.org and sourceware.org links to https
[official-gcc.git] / gcc / testsuite / gcc.target / arm / vfp-longcall-apcs.c
blob817d5d0dc7733afaff6d0163d48a2b50e3b4b878
1 /* { dg-do run } */
2 /* { dg-skip-if "FDPIC does not support sibcall optimization" { arm*-*-uclinuxfdpiceabi } "*" "" } */
3 /* { dg-options "-mapcs-frame -O -foptimize-sibling-calls -ffunction-sections" } */
5 extern void abort (void);
7 static __attribute__((noclone, noinline, long_call))
8 int foo (int a, int b, int c, int d, double i)
10 return a;
13 static __attribute__((noclone, noinline))
14 double baz (double i)
16 return i;
19 static __attribute__((noclone, noinline))
20 int bar (int a, int b, int c, int d, double i, double j)
22 double l = baz (i) * j;
23 return foo (a, b, c, d, l);
26 int
27 main (void)
29 if (bar (0, 0, 0, 0, 0.0, 0.0) != 0)
30 abort ();
32 return 0;