1 /* { dg-require-effective-target vect_float } */
9 int main1 (float x, float max_result)
12 float b[N] = {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45};
13 float c[N] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
18 for (i = 0; i < N; i++) {
19 diff += (b[i] - c[i]);
22 for (i = 0; i < N; i++) {
23 max = max < c[i] ? c[i] : max;
26 for (i = 0; i < N; i++) {
27 min = min > c[i] ? c[i] : min;
33 if (max != max_result)
50 /* need -ffast-math to vectorizer these loops. */
51 /* { dg-final { scan-tree-dump-times "vectorized 0 loops" 1 "vect" } } */
52 /* { dg-final { cleanup-tree-dump "vect" } } */