URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 816 |
Rev 826 |
/* PR debug/45055 */
|
/* PR debug/45055 */
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-O2 -ftracer -fsched-pressure -funroll-loops -fschedule-insns -fcompare-debug" } */
|
/* { dg-options "-O2 -ftracer -fsched-pressure -funroll-loops -fschedule-insns -fcompare-debug" } */
|
|
|
int colormap[10];
|
int colormap[10];
|
|
|
extern int bar ();
|
extern int bar ();
|
|
|
void
|
void
|
foo (int *img, int fp, int y, int *ptr, int depth, int c, int t, int xm)
|
foo (int *img, int fp, int y, int *ptr, int depth, int c, int t, int xm)
|
{
|
{
|
int x, color, count;
|
int x, color, count;
|
for (; y; y--)
|
for (; y; y--)
|
{
|
{
|
if (depth)
|
if (depth)
|
{
|
{
|
count = bar ();
|
count = bar ();
|
for (x = xm; x; x--)
|
for (x = xm; x; x--)
|
{
|
{
|
if (c != 1)
|
if (c != 1)
|
count = color = -1;
|
count = color = -1;
|
if (count == 0)
|
if (count == 0)
|
color = count = bar ();
|
color = count = bar ();
|
if (color)
|
if (color)
|
t = bar (fp);
|
t = bar (fp);
|
*ptr++ = colormap[t];
|
*ptr++ = colormap[t];
|
}
|
}
|
}
|
}
|
switch (*img)
|
switch (*img)
|
{
|
{
|
case 1:
|
case 1:
|
bar ();
|
bar ();
|
case 3:
|
case 3:
|
case -1:
|
case -1:
|
case -3:
|
case -3:
|
bar ();
|
bar ();
|
case -4:
|
case -4:
|
bar ();
|
bar ();
|
}
|
}
|
}
|
}
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.