1 /* { dg-require-effective-target vect_int } */
15 static int a
[N
] = {1,2,3,4,5,6,7,8,9};
16 static int b
[N
] = {2,3,4,5,6,7,8,9,0};
22 p
= (struct extraction
*) malloc (sizeof (struct extraction
));
24 /* Vectorizable: alias analysis determines that p can't point to a and/or b. */
25 for (i
= 0; i
< N
; i
++)
32 for (i
= 0; i
< N
; i
++)
34 if (p
->a
[i
] != a
[i
] || p
->b
[i
] != b
[i
])
43 int c
[N
] = {1,2,3,4,5,6,7,8,9};
44 int d
[N
] = {2,3,4,5,6,7,8,9,0};
46 p
= (struct extraction
*) malloc (sizeof (struct extraction
));
48 /* Vectorizable: c and d are local arrays. */
49 for (i
= 0; i
< N
; i
++)
56 for (i
= 0; i
< N
; i
++)
58 if (p
->a
[i
] != c
[i
] || p
->b
[i
] != d
[i
])
75 /* Requires versioning. */
76 /* { dg-final { scan-tree-dump-times "vectorized 2 loops" 0 "vect" } } */
77 /* { dg-final { cleanup-tree-dump "vect" } } */