URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
/* This testcase failed on Alpha at -O2 when simplifying conditional
|
/* This testcase failed on Alpha at -O2 when simplifying conditional
|
expressions. */
|
expressions. */
|
|
|
int foo (void);
|
int foo (void);
|
|
|
struct A
|
struct A
|
{
|
{
|
int a, b, c, d;
|
int a, b, c, d;
|
};
|
};
|
|
|
void bar (struct A *x)
|
void bar (struct A *x)
|
{
|
{
|
int e, f;
|
int e, f;
|
|
|
e = foo ();
|
e = foo ();
|
e = e / x->b;
|
e = e / x->b;
|
if (e < 1)
|
if (e < 1)
|
e = 1;
|
e = 1;
|
f = (x->a + x->c) / e;
|
f = (x->a + x->c) / e;
|
if (f < x->d)
|
if (f < x->d)
|
x->d -= (1 << 16) / 8;
|
x->d -= (1 << 16) / 8;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.