OSDN Git Service

PR testsuite/20772
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / 20020418-2.c
1 /* PR optimization/6010 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -funroll-all-loops" } */
4 /* { dg-options "-O2 -funroll-all-loops -march=pentium3" { target { i?86-*-* && ilp32 } } } */
5 /* { dg-options "-O2 -funroll-all-loops -march=pentium3" { target { x86_64-*-* && ilp32 } } } */
6
7 void bar (float);
8
9 void foo (float y, unsigned long z)
10 {
11   int b;
12   float c = y;
13
14   for (b = 0; b < z; b++)
15     {
16       bar (c);
17       if (c == y)
18         c = -y;
19       else
20         c = y;
21     }
22 }