Update concepts branch to revision 131834
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-15.c
blobb2ae9c8471d6328b43b81e467aab1329d6bac77d
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 ()
11 int i;
12 int a[N];
13 int b[N] = {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45};
15 /* Not vectorizable yet (reverse access and forward access). */
16 for (i = N; i > 0; i--)
18 a[N-i] = b[i-1];
21 /* check results: */
22 for (i = 0; i <N; i++)
24 if (a[i] != b[N-1-i])
25 abort ();
28 return 0;
31 int main (void)
33 check_vect();
35 return main1 ();
38 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { xfail *-*-* } } } */
39 /* { dg-final { cleanup-tree-dump "vect" } } */