OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [i386/] [20060125-1.c] - Rev 378

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

/* PR rtl-optimization/25703 */
/* { dg-do run } */
/* { dg-require-effective-target ilp32 } */
/* { dg-options "-O2 -mtune=i486" } */
 
extern void abort (void);
 
struct a
{
        int a;
        char b,c,d,e;
};
 
__attribute__ ((noinline))
__attribute__ ((regparm(1))) t(struct a a)
{
        if (a.a!=1 || a.b!=1 || a.c!=1)
                        abort();
}
 
int main()
{
        struct a a;
        a.c=1;
        a.a=1;
        a.b=1;
        t(a);
        return 0;
}
 
 

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.