Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.dg / vect / fast-math-vect-reduc-9.c
blobeb703f5af86484794fe9434e783cddcbe3f54a62
1 /* { dg-require-effective-target vect_float } */
3 #include "tree-vect.h"
5 float x[1024];
6 float
7 test (void)
9 int i;
10 float gosa = 0.0;
11 for (i = 0; i < 1024; ++i)
13 float tem = x[i];
14 gosa += tem * tem;
16 return gosa;
19 int main (void)
21 check_vect ();
23 if (test () != 0.0)
24 abort ();
26 return 0;
29 /* { dg-final { scan-tree-dump "vectorized 1 loops" "vect" } } */
30 /* { dg-final { cleanup-tree-dump "vect" } } */