URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 298 |
Rev 338 |
/* PR optimization/8555 */
|
/* PR optimization/8555 */
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-O -ffast-math -funroll-loops" } */
|
/* { dg-options "-O -ffast-math -funroll-loops" } */
|
/* { dg-options "-march=pentium3 -O -ffast-math -funroll-loops" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
|
/* { dg-options "-march=pentium3 -O -ffast-math -funroll-loops" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
|
|
|
|
|
float foo (float *a, int i)
|
float foo (float *a, int i)
|
{
|
{
|
int j;
|
int j;
|
float x = a[j = i - 1], y;
|
float x = a[j = i - 1], y;
|
|
|
for (j = i; --j >= 0; )
|
for (j = i; --j >= 0; )
|
if ((y = a[j]) > x)
|
if ((y = a[j]) > x)
|
x = y;
|
x = y;
|
|
|
return x;
|
return x;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.