Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/loop-6.c @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* PR optimization/18577 */ /* Origin: Falk Hueffner <falk@debian.org> */ /* { dg-do run } */ /* { dg-options "-O2 -funroll-all-loops" } */ static float tfcos12[3]; __attribute__((noinline)) double f(double x) { return x; } int g; int main(void) { int i, j; for (i = 0; i < 1; i++) tfcos12[i] = 0.5; for (i = 0; i < 1; i++) { tfcos12[i] = 0.5 * f(i); for (j = 0; j < 12; j++) g++; } return 0; }