Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/20030204-1.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 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 } } } */ | |
5 | |
6 | |
7 float foo (float *a, int i) | |
8 { | |
9 int j; | |
10 float x = a[j = i - 1], y; | |
11 | |
12 for (j = i; --j >= 0; ) | |
13 if ((y = a[j]) > x) | |
14 x = y; | |
15 | |
16 return x; | |
17 } |