gcc/testsuite/gcc.dg/sibcall-12.c
raw| 1 | // Test for sibcall optimization with struct aligned on stack. |
| 2 | // { dg-options "-O2" } |
| 3 | // { dg-final { scan-assembler "jmp" { target i?86-*-* x86_64-*-* } } } |
| 4 | |
| 5 | struct A { char a[17]; }; |
| 6 | |
| 7 | int baz (int a, int b, int c, void *p, struct A s, struct A); |
| 8 | |
| 9 | int |
| 10 | foo (int a, int b, int c, void *p, struct A s, struct A s2) |
| 11 | { |
| 12 | return baz (a, b, c, p, s, s2); |
| 13 | } |