arm: fix typo in dg-require-effective-target [PR118089]
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-outer-call-1.c
blobf26d422053206730c63a2f2d214ad249fcd822f0
1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_float } */
3 /* { dg-additional-options "-fno-math-errno" } */
5 void
6 foo (float * __restrict x, float *y, int n, int m)
8 if (m > 0)
9 for (int i = 0; i < n; ++i)
11 float tem = x[i], tem1;
12 for (int j = 0; j < m; ++j)
14 tem += y[j];
15 tem1 = tem;
16 tem = __builtin_sqrtf (tem);
18 x[i] = tem - tem1;
22 /* { dg-final { scan-tree-dump "OUTER LOOP VECTORIZED" "vect" { target { vect_call_sqrtf } } } } */