1 /* { dg-do compile } */ 2 /* { dg-require-effective-target vect_float } */ 3 4 float *x; 5 float parm; 6 float test(int start,int end)7test (int start, int end) 8 { 9 int i; 10 for (i = start; i < end; ++i) 11 { 12 float tem = x[i]; 13 x[i] = parm * tem; 14 } 15 } 16 17 /* { dg-final { scan-tree-dump "vectorized 1 loops" "vect" } } */ 18 /* { dg-final { cleanup-tree-dump "vect" } } */ 19