Sync usage with man page.
[netbsd-mini2440.git] / gnu / dist / gcc4 / gcc / testsuite / gcc.dg / vect / vect-67.c
blob7bc728dc179769d3a7e1ed9368690f45cbee1196
1 /* { dg-require-effective-target vect_int } */
3 #include <stdarg.h>
4 #include "tree-vect.h"
6 #define N 16
8 int main1 (int a, int b)
10 int i, j;
11 int ia[N][4][N+8];
13 /* Multidimensional array. Aligned. The "inner" dimensions
14 are invariant in the inner loop. Store.
15 Not vectorizable: unsupported operation. */
16 for (i = 0; i < N; i++)
18 for (j = 0; j < N; j++)
20 ia[i][1][j+8] = (a == b);
24 /* check results: */
25 for (i = 0; i < N; i++)
27 for (j = 0; j < N; j++)
29 if (ia[i][1][j+8] != (a == b))
30 abort();
34 return 0;
37 int main (void)
39 check_vect ();
41 return main1 (2 ,7);
44 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
45 /* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 0 "vect" } } */
46 /* { dg-final { cleanup-tree-dump "vect" } } */