Add qdf24xx base tuning support.
[official-gcc.git] / gcc / testsuite / gcc.dg / var-expand2.c
blob499de55cb899891a46fbe3f747baf3795d4efcf6
1 /* { dg-do run } */
2 /* { dg-options "-O2 -funroll-loops -ffast-math -fvariable-expansion-in-unroller" } */
4 extern void abort (void);
6 float array[10] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
8 int
9 foo (int n)
11 unsigned i;
12 float accum = 0;
14 for (i = 0; i < n; i++)
15 accum += array[i];
17 if (accum != 55)
18 abort ();
20 return 0;
23 int
24 main (void)
26 return foo (10);