Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.dg / vect / vect-117.c
blob1afe3fceb3cb0266f4fe02a29a2f9512ebed7bbb
1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_int } */
4 #include <stdlib.h>
5 #include <stdarg.h>
6 #include "tree-vect.h"
8 #define N 4
10 int main1 ()
12 int i;
13 size_t ** p;
14 size_t * ia[N];
16 /* Unknown evolution. */
17 for (i = 0; i < N; i++)
19 ia[i] = (size_t *) *p[i];
22 /* check results: */
23 for (i = 0; i < N; i++)
25 if (ia[i] != (size_t *) *p[i])
26 abort();
28 return 0;
31 int main2 (int n)
33 int i;
34 int **ia;
36 /* Unknown evolution. Combination of two access functions. */
37 for (i = 0; i < n; i++)
39 ia[i][i] = 0;
42 /* check results: */
43 for (i = 0; i < n; i++)
45 if (ia[i][i] != 0)
46 abort();
48 return 0;
51 /* { dg-final { scan-tree-dump-times "vectorized 0 loops" 2 "vect" } } */
52 /* { dg-final { cleanup-tree-dump "vect" } } */