1 /* { dg-require-effective-target vect_int } */
15 static int a
[N
][N
] = {{1,2,3},{4,5,6},{7,8,9}};
16 static int b
[N
][N
] = {{17,24,7},{0,2,3},{4,31,82}};
17 static int c
[N
][N
] = {{1,2,3},{4,5,5},{5,5,5}};
20 __attribute__ ((noinline
))
24 p
= (struct extraction
*) malloc (sizeof (struct extraction
));
26 for (i
= 0; i
< N
; i
++)
28 for (j
= 0; j
< N
; j
++)
33 abort (); /* to avoid vectorization */
37 /* Not vectorizable: distance = 1. */
38 for (i
= 1; i
< N
; i
++)
40 for (j
= 0; j
< N
; j
++)
42 *((int *)p
+ x
+ i
+ j
+ 1) = *((int *)p
+ x
+ i
+ j
);
47 for (i
= 0; i
< N
; i
++)
49 for (j
= 0; j
< N
; j
++)
51 if (p
->a
[i
][j
] != c
[i
][j
])
66 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 0 "vect" } } */
67 /* { dg-final { scan-tree-dump-times "possible dependence between data-refs" 1 "vect" } } */
68 /* { dg-final { cleanup-tree-dump "vect" } } */