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

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

Line No. Rev Author Line
1 149 jeremybenn
/* PR rtl-optimization/25703 */
2
/* { dg-do run { target i?86-*-* x86_64-*-* } } */
3
/* { dg-require-effective-target ilp32 } */
4
/* { dg-options "-O2 -mtune=i486" } */
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.