URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 297 |
Rev 384 |
/* PR tree-optimization/34140 */
|
/* PR tree-optimization/34140 */
|
/* Testcase by Martin Michlmayr <tbm@cyrius.com> */
|
/* Testcase by Martin Michlmayr <tbm@cyrius.com> */
|
|
|
struct S
|
struct S
|
{
|
{
|
unsigned int s;
|
unsigned int s;
|
};
|
};
|
struct T
|
struct T
|
{
|
{
|
struct S t[2];
|
struct S t[2];
|
unsigned int u : 1;
|
unsigned int u : 1;
|
};
|
};
|
|
|
void
|
void
|
foo (int x, int y, int z)
|
foo (int x, int y, int z)
|
{
|
{
|
int i;
|
int i;
|
struct T t;
|
struct T t;
|
|
|
t.u = t.u;
|
t.u = t.u;
|
for (i = 0; i < x; i++)
|
for (i = 0; i < x; i++)
|
if (z != 1)
|
if (z != 1)
|
t.t[i].s = y || t.u;
|
t.t[i].s = y || t.u;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.