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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.target/] [i386/] [regparm-stdcall.c] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do run } */
2
/* { dg-options -mpreferred-stack-boundary=4 } */
3
/* { dg-require-effective-target ilp32 } */
4
 
5
extern void abort(void);
6
 
7
void __attribute__((regparm(2), stdcall)) foo(int i, int j, float x)
8
{
9
  static int last_align = -1;
10
  int dummy, align = (int)&dummy & 15;
11
  if (last_align < 0)
12
    last_align = align;
13
  else if (align != last_align)
14
    abort ();
15
}
16
 
17
int main()
18
{
19
        foo(0,0,0.0);
20
        foo(0,0,0.0);
21
        return 0;
22
}

powered by: WebSVN 2.1.0

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