1 /* { dg-do compile } */
2 /* We don't (and don't want to) perform this optimisation on soft-float
3 MIPS targets, where each addition is a library call. */
4 /* { dg-skip-if "" { mips_soft_float } { "*" } { "" } } */
5 /* { dg-options "-O2 -funroll-loops --fast-math -fvariable-expansion-in-unroller -dL" } */
7 extern void abort (void);
9 float array[10] = { 1,2,3,4,5,6,7,8,9,10 };
16 for (i = 0; i < n; i++)
27 /* { dg-final { scan-rtl-dump "Expanding Accumulator" "loop2_unroll" } } */
28 /* { dg-final { cleanup-rtl-dump "loop*" } } */