OSDN Git Service

* gcc.dg/intmax_t-1.c: Remove mmix-*-* from dg-error statement.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / 20030204-1.c
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-*-* && ilp32 } } } */
5 /* { dg-options "-march=pentium3 -O -ffast-math -funroll-loops" { target { x86_64-*-* && ilp32 } } } */
6
7
8 float foo (float *a, int i)
9 {
10   int j;
11   float x = a[j = i - 1], y;
12
13   for (j = i; --j >= 0; )
14     if ((y = a[j]) > x)
15       x = y;
16
17   return x;
18 }