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 |
/* Test case for PR23625 */
|
/* Test case for PR23625 */
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-O2 -ftree-vectorize -ftree-loop-linear" } */
|
/* { dg-options "-O2 -ftree-vectorize -ftree-loop-linear" } */
|
|
|
typedef long INT32;
|
typedef long INT32;
|
void find_best_colors ()
|
void find_best_colors ()
|
{
|
{
|
int ic0, ic1, ic2;
|
int ic0, ic1, ic2;
|
INT32 * bptr;
|
INT32 * bptr;
|
INT32 dist1;
|
INT32 dist1;
|
INT32 dist2;
|
INT32 dist2;
|
INT32 xx1;
|
INT32 xx1;
|
for (ic0 = (1<<(5 -3))-1;ic0 >= 0;ic0--)
|
for (ic0 = (1<<(5 -3))-1;ic0 >= 0;ic0--)
|
{
|
{
|
for (ic1 = (1<<(6 -3))-1;ic1 >= 0;ic1--)
|
for (ic1 = (1<<(6 -3))-1;ic1 >= 0;ic1--)
|
{
|
{
|
dist2 = dist1;
|
dist2 = dist1;
|
for (ic2 = (1<<(5 -3))-1;ic2 >= 0;ic2--)
|
for (ic2 = (1<<(5 -3))-1;ic2 >= 0;ic2--)
|
{
|
{
|
*bptr = dist2;
|
*bptr = dist2;
|
bptr++;
|
bptr++;
|
}
|
}
|
dist1 += xx1;
|
dist1 += xx1;
|
}
|
}
|
}
|
}
|
}
|
}
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.