FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / gcc.dg / 20030204-1.c
blobe236e3a3a39c0c9bbcfe9580516cd758e4fa72d8
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-*-* } } */
6 float foo (float *a, int i)
8 int j;
9 float x = a[j = i - 1], y;
11 for (j = i; --j >= 0; )
12 if ((y = a[j]) > x)
13 x = y;
15 return x;