Merged with mainline at revision 128810.
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-71.c
blob7416b4333347da46d1e5f4473eadbe83e81f2902
1 /* { dg-require-effective-target vect_int } */
3 #include <stdarg.h>
4 #include "tree-vect.h"
6 #define N 16
8 /* indirect access. */
10 __attribute__ ((noinline))
11 int main1 ()
13 int i;
14 unsigned ia[N];
15 unsigned ib[N+1] = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 0, 1, 2};
17 for (i = 2; i < N+1; i++)
19 ia[ib[i]] = 0;
22 /* check results: */
23 for (i = 2; i < N+1; i++)
25 if (ia[ib[i]] != 0)
26 abort();
29 return 0;
32 int main (void)
34 check_vect ();
36 return main1 ();
39 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { xfail *-*-* } } } */
40 /* { dg-final { cleanup-tree-dump "vect" } } */