1 /* { dg-additional-options "-ffast-math" } */
2
3 #include "tree-vect.h"
4
5 float __attribute__((noinline,noclone))
6 f (float x)
7 {
8 int i;
9 float j;
10 float a = 0;
11 for (i = 0; i < 4; ++i)
12 {
13 for (j = 0; j < 4; ++j)
14 {
15 a += 1;
16 x += a;
17 }
18 }
19 return x;
20 }
21
22 int
23 main()
24 {
25 check_vect ();
26 if (f (1.0f) != 137.0f)
27 abort ();
28 return 0;
29 }
30
31 /* { dg-final { scan-tree-dump "OUTER LOOP VECTORIZED" "vect" { target vect_float } } } */