OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [x86_64/] [abi/] [callabi/] [leaf-2.c] - Rev 801

Go to most recent revision | Compare with Previous | Blame | View Log

/* { dg-do compile } */
/* { dg-options "-O2 -mabi=sysv" } */
 
extern int glb1, gbl2, gbl3;
 
__attribute__ ((ms_abi))
int foo (void)
{
  int r = 1;
  int i, j, k;
  for (i = 0; i < glb1; i++)
  {
     r *= (i + 1);
     for (j = gbl2; j > 0; --j)
       {
	 for (k = 0; k < gbl3; k++)
	   r += (i + k * j);
       }
  }
 
  return r;
}
 
/* { dg-final { scan-assembler-not "%rsp" } } */
 
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.