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,6,8},{8,9,9}};
22 p
= (struct extraction
*) malloc (sizeof (struct extraction
));
24 for (i
= 0; i
< N
; i
++)
26 for (j
= 0; j
< N
; j
++)
31 abort (); /* to avoid vectorization */
35 /* Not vectorizable: distance = 1. */
36 for (i
= 1; i
< N
; i
++)
38 for (j
= 0; j
< N
; j
++)
40 *((int *)p
+ x
+ i
+ j
) = *((int *)p
+ x
+ i
+ j
+ 1);
45 for (i
= 0; i
< N
; i
++)
47 for (j
= 0; j
< N
; j
++)
49 if (p
->a
[i
][j
] != c
[i
][j
])
63 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 0 "vect" } } */
64 /* { dg-final { scan-tree-dump-times "possible dependence between data-refs" 1 "vect" } } */
65 /* { dg-final { cleanup-tree-dump "vect" } } */