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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [i386/] [regparm-stdcall.c] - Rev 318

Compare with Previous | Blame | View Log

/* { dg-do run } */
/* { dg-options -mpreferred-stack-boundary=4 } */
/* { dg-require-effective-target ilp32 } */
 
extern void abort(void);
 
void __attribute__((regparm(2), stdcall)) foo(int i, int j, float x)
{
  static int last_align = -1;
  int dummy, align = (int)&dummy & 15;
  if (last_align < 0)
    last_align = align;
  else if (align != last_align)
    abort ();
}
 
int main()
{
	foo(0,0,0.0);
	foo(0,0,0.0);
	return 0;
}
 

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.