summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/mips/call-2.c
blob: 8e749919031670144148d681f2748a7ce619574a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* See through some simple data-flow.  */
/* { dg-options "-O2 -mrelax-pic-calls" } */
/* { dg-final { scan-assembler-times "\\.reloc\t1f,R_MIPS_JALR,g\n1:\tjalr\t" 3 } } */

NOMIPS16 f (int i)
{
  while (i--)
    g ();
}

NOMIPS16 ff ()
{
  g ();
  g ();
  return 1;
}