diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/ia64/sibcall-opt-1.c')
-rw-r--r-- | gcc/testsuite/gcc.target/ia64/sibcall-opt-1.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/ia64/sibcall-opt-1.c b/gcc/testsuite/gcc.target/ia64/sibcall-opt-1.c new file mode 100644 index 000000000..6e8d1a2fa --- /dev/null +++ b/gcc/testsuite/gcc.target/ia64/sibcall-opt-1.c @@ -0,0 +1,12 @@ +/* PR target/38056. Do not do sibcall optimization across object file + boundery when -mconstant-gp is not used. */ +/* { dg-do compile } */ +/* { dg-options "-O2" } */ +/* { dg-final { scan-assembler "br.call.*bar" } } */ + +int bar(int x); + +int foo(int x) +{ + return (bar(x + 1)); +} |