URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 298 |
Rev 338 |
/* PR bootstrap/41241 */
|
/* PR bootstrap/41241 */
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-O2 -fcompare-debug -g" } */
|
/* { dg-options "-O2 -fcompare-debug -g" } */
|
/* { dg-options "-O2 -fcompare-debug -g -march=i586 -mtune=i586 -fomit-frame-pointer" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
|
/* { dg-options "-O2 -fcompare-debug -g -march=i586 -mtune=i586 -fomit-frame-pointer" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
|
|
|
typedef struct { int t1; int t2; int t3; } *T;
|
typedef struct { int t1; int t2; int t3; } *T;
|
typedef struct { int s; } S;
|
typedef struct { int s; } S;
|
|
|
int fn1 (int);
|
int fn1 (int);
|
int fn2 (int, int, int);
|
int fn2 (int, int, int);
|
int fn3 (void);
|
int fn3 (void);
|
|
|
static S
|
static S
|
bar ()
|
bar ()
|
{
|
{
|
S s = { 0 };
|
S s = { 0 };
|
return s;
|
return s;
|
}
|
}
|
|
|
void
|
void
|
foo (T x)
|
foo (T x)
|
{
|
{
|
int a, b, c, d, e;
|
int a, b, c, d, e;
|
T f, g;
|
T f, g;
|
S h;
|
S h;
|
a = x->t2;
|
a = x->t2;
|
fn1 (x->t1);
|
fn1 (x->t1);
|
h = bar (b);
|
h = bar (b);
|
c = fn1 (e);
|
c = fn1 (e);
|
d = fn3 ();
|
d = fn3 ();
|
f->t3 &= g->t3 |= fn2 (0, b, x->t1);
|
f->t3 &= g->t3 |= fn2 (0, b, x->t1);
|
fn2 (0, c, d);
|
fn2 (0, c, d);
|
fn2 (0, e, 0);
|
fn2 (0, e, 0);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.