2018-01-16 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / fast-math-vect-outer-7.c
blob50ce3547eed496bde4bab43b5770a21e7a519963
1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_float } */
4 float dvec[256];
6 void test1 (float x)
8 long i, j;
9 for (i = 0; i < 256; ++i)
10 for (j = 0; j < 131072; ++j)
11 dvec[i] *= x;
14 void test2 (float x)
16 long i, j;
17 for (i = 0; i < 256; ++i)
18 for (j = 0; j < 131072; ++j)
19 dvec[i] *= 1.001f;
22 /* { dg-final { scan-tree-dump-times "OUTER LOOP VECTORIZED" 2 "vect" } } */