Debian Codegraph @

gcc/testsuite/gcc.target/xtensa/sibcalls.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mabi=call0 -foptimize-sibling-calls" } */
3
4 extern int foo(int);
5 extern void bar(int);
6
7 int test_0(int a) {
8 return foo(a);
9 }
10
11 void test_1(int a) {
12 bar(a);
13 }
14
15 int test_2(int (*a)(void)) {
16 bar(0);
17 return a();
18 }
19
20 _Complex double test_3(_Complex double a, _Complex double (*b)(_Complex double, double)) {
21 bar(-1);
22 return b(a, 3.141592653589795);
23 }
24
25 /* { dg-final { scan-assembler-not "ret" } } */