SVE Intrinsics: Change return type of redirect_call to gcall.
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-pr69848.c
blobc08f1e2f5c0a14b55de7cd070c8c94fb1d872e06
1 /* { dg-require-effective-target vect_int } */
2 /* { dg-require-effective-target vect_condition } */
3 #include <stdarg.h>
4 #include "tree-vect.h"
6 #define N 256
7 int a[N] = {0};
9 __attribute__ ((noinline))
10 int foo ()
12 int i, res = 0;
13 for (i = 0; i < N; i++)
15 if (a[i] != 0)
16 res = 1;
18 return res;
21 int main (void)
23 int i, res;
25 check_vect ();
27 if ((res = foo ()) != 0)
28 abort ();
30 a[34] = 101;
31 a[85] = 9;
32 if ((res = foo ()) != 1)
33 abort ();
35 return 0;
37 /* { dg-final { scan-tree-dump "vectorized 1 loops" "vect" } } */