URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 298 |
Rev 384 |
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-O2 -ftree-loop-linear" } */
|
/* { dg-options "-O2 -ftree-loop-linear" } */
|
|
|
extern int s;
|
extern int s;
|
|
|
void
|
void
|
foo (int *x, int y, int z)
|
foo (int *x, int y, int z)
|
{
|
{
|
int m, n;
|
int m, n;
|
int o;
|
int o;
|
int p = x[0];
|
int p = x[0];
|
o = s;
|
o = s;
|
for (m = 0; m < s; m++)
|
for (m = 0; m < s; m++)
|
for (n = 0; n < s; n++)
|
for (n = 0; n < s; n++)
|
{
|
{
|
if (x[n] != p)
|
if (x[n] != p)
|
continue;
|
continue;
|
if (m > z)
|
if (m > z)
|
z = m;
|
z = m;
|
if (n < o)
|
if (n < o)
|
o = n;
|
o = n;
|
}
|
}
|
for (m = y; m <= z; m++)
|
for (m = y; m <= z; m++)
|
{
|
{
|
}
|
}
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.