2009-07-17 Richard Guenther <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-67.c
blob1ddab5c2e5443a54a6635d913b72982bd5e02fe5
1 /* { dg-require-effective-target vect_int } */
3 #include <stdarg.h>
4 #include "tree-vect.h"
6 #define N 16
8 __attribute__ ((noinline))
9 int main1 (int a, int b)
11 int i, j;
12 int ia[N][4][N+8];
14 /* Multidimensional array. Aligned. The "inner" dimensions
15 are invariant in the inner loop. Store.
16 Not vectorizable: unsupported operation. */
17 for (i = 0; i < N; i++)
19 for (j = 0; j < N; j++)
21 ia[i][1][j+8] = (a == b);
25 /* check results: */
26 for (i = 0; i < N; i++)
28 for (j = 0; j < N; j++)
30 if (ia[i][1][j+8] != (a == b))
31 abort();
35 return 0;
38 int main (void)
40 check_vect ();
42 return main1 (2 ,7);
45 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
46 /* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 0 "vect" } } */
47 /* { dg-final { cleanup-tree-dump "vect" } } */