gcc/
[official-gcc.git] / gcc / testsuite / gcc.dg / 20030204-1.c
blob6b8ea4daa9ef9c6fdd37bdf979f4da104b127a1f
1 /* PR optimization/8555 */
2 /* { dg-do compile } */
3 /* { dg-options "-O -ffast-math -funroll-loops" } */
4 /* { dg-options "-march=pentium3 -O -ffast-math -funroll-loops" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
7 float foo (float *a, int i)
9 int j;
10 float x = a[j = i - 1], y;
12 for (j = i; --j >= 0; )
13 if ((y = a[j]) > x)
14 x = y;
16 return x;