libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr89440.c
blobd84527edb443660848954da07d98c0a24ff9204f
1 /* { dg-additional-options "-ffast-math" } */
3 #include "tree-vect.h"
5 float __attribute__((noinline,noclone))
6 f (float x)
8 int i;
9 float j;
10 float a = 0;
11 for (i = 0; i < 4; ++i)
13 for (j = 0; j < 4; ++j)
15 a += 1;
16 x += a;
19 return x;
22 int
23 main()
25 check_vect ();
26 if (f (1.0f) != 137.0f)
27 abort ();
28 return 0;
31 /* { dg-final { scan-tree-dump "OUTER LOOP VECTORIZED" "vect" { target vect_float } } } */