URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
/* PR optimization/6010 */
|
/* PR optimization/6010 */
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-O2 -funroll-all-loops" } */
|
/* { dg-options "-O2 -funroll-all-loops" } */
|
/* { dg-options "-O2 -funroll-all-loops -march=pentium3" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
|
/* { dg-options "-O2 -funroll-all-loops -march=pentium3" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
|
|
|
void bar (float);
|
void bar (float);
|
|
|
void foo (float y, unsigned long z)
|
void foo (float y, unsigned long z)
|
{
|
{
|
int b;
|
int b;
|
float c = y;
|
float c = y;
|
|
|
for (b = 0; b < z; b++)
|
for (b = 0; b < z; b++)
|
{
|
{
|
bar (c);
|
bar (c);
|
if (c == y)
|
if (c == y)
|
c = -y;
|
c = -y;
|
else
|
else
|
c = y;
|
c = y;
|
}
|
}
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.