summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/ia64/sibcall-opt-2.c
blob: d802b792deae834fc1f00d0f9f24aea822a6625f (plain)
1
2
3
4
5
6
7
8
9
10
11
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));
}