1 /* { dg-options "-O2 -floop-nest-optimize" } */
3 void foo(int N
, float *x
, float *X
)
6 for (int n
= 0; n
< N
; ++n
)
11 for (unsigned int k
= 1; k
< N
; ++k
) {
13 for (int n
= 0; n
< N
; ++n
)
14 sum
+= x
[n
] * ((float)(3.14159265358979323846 * (n
+ .5) * k
/ N
));