aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/aarch64/tail_indirect_call_1.c
blob: de8f12d6e22360ef7e376530a165b556ae152466 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do compile } */
/* { dg-options "-O2" } */

typedef void FP (int);

/* { dg-final { scan-assembler-times "br\t" 2 } } */
/* { dg-final { scan-assembler-not "blr\t" } } */
void
f1 (FP fp, int n)
{
  (fp) (n);
}

void
f2 (int n, FP fp)
{
  (fp) (n);
}