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

static int __attribute__ ((__noclone__, __noinline__))
reg_args (int j1, int j2, int j3, int j4, int j5, int j6, int j7, int j8)
{
  return j1 + j2 + j3 + j4 + j5 + j6 + j7 + j8;
}

int __attribute__ ((__noclone__, __noinline__))
stack_args (int j1, int j2, int j3, int j4, int j5, int j6, int j7, int j8,
	    int j9)
{
  if (j9 == 0)
    return 0;
  return reg_args (j1, j2, j3, j4, j5, j6, j7, j8);
}

/* { dg-final { scan-assembler-not {(?n)^\s+bl\s} } } */