Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.target/arm/vfp-longcall-apcs.c @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 1830386684a0 |
children |
line wrap: on
line source
/* { dg-do run } */ /* { dg-skip-if "FDPIC does not support sibcall optimization" { arm*-*-uclinuxfdpiceabi } "*" "" } */ /* { dg-options "-mapcs-frame -O -foptimize-sibling-calls -ffunction-sections" } */ extern void abort (void); static __attribute__((noclone, noinline, long_call)) int foo (int a, int b, int c, int d, double i) { return a; } static __attribute__((noclone, noinline)) double baz (double i) { return i; } static __attribute__((noclone, noinline)) int bar (int a, int b, int c, int d, double i, double j) { double l = baz (i) * j; return foo (a, b, c, d, l); } int main (void) { if (bar (0, 0, 0, 0, 0.0, 0.0) != 0) abort (); return 0; }