Small ChangeLog tweak.
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-15-big-array.c
blobd9457c3273a34e28dbb6ef30862cdc4ad70d450b
1 /* { dg-require-effective-target vect_int } */
3 #include <stdarg.h>
4 #include "tree-vect.h"
6 #define N 128
8 volatile int y = 0;
10 __attribute__ ((noinline))
11 int main1 ()
13 int i;
14 int a[N];
15 int b[N];
17 for (i = 0; i <N; i++)
19 b[i] = i*3;
20 if (y)
21 abort ();
24 /* Not vectorizable yet (reverse access and forward access). */
25 for (i = N; i > 0; i--)
27 a[N-i] = b[i-1];
30 /* check results: */
31 for (i = 0; i <N; i++)
33 if (a[i] != b[N-1-i])
34 abort ();
37 return 0;
40 int main (void)
42 check_vect ();
44 return main1 ();
47 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target { vect_perm && vect_hw_misalign } } } } */