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/] [20060125-2.c] - Blame information for rev 318

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 318 jeremybenn
/* PR rtl-optimization/25703 */
2
/* { dg-do run } */
3
/* { dg-require-effective-target ilp32 } */
4
/* { dg-options "-O2 -mtune=pentiumpro" } */
5
 
6
extern void abort (void);
7
 
8
struct a
9
{
10
        int a;
11
        char b,c,d,e;
12
};
13
 
14
__attribute__ ((noinline))
15
__attribute__ ((regparm(1))) t(struct a a)
16
{
17
        if (a.a!=1 || a.b!=1 || a.c!=1)
18
                        abort();
19
}
20
 
21
int main()
22
{
23
        struct a a;
24
        a.c=1;
25
        a.a=1;
26
        a.b=1;
27
        t(a);
28
        return 0;
29
}
30
 

powered by: WebSVN 2.1.0

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