1  /* { dg-do compile } */
       2  /* { dg-require-effective-target vect_float } */
       3  /* { dg-additional-options "-fno-math-errno" } */
       4  
       5  void
       6  foo (float * __restrict x, float *y, int n, int m)
       7  {
       8    if (m > 0)
       9      for (int i = 0; i < n; ++i)
      10        {
      11  	float tem = x[i], tem1;
      12  	for (int j = 0; j < m; ++j)
      13  	  {
      14  	    tem += y[j];
      15  	    tem1 = tem;
      16  	    tem = __builtin_sqrtf (tem);
      17  	  }
      18  	x[i] = tem - tem1;
      19        }
      20  }
      21  
      22  /* { dg-final { scan-tree-dump "OUTER LOOP VECTORIZED" "vect" { target { vect_call_sqrtf } } } } */