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