Sync usage with man page.
[netbsd-mini2440.git] / gnu / dist / gcc4 / gcc / testsuite / gcc.dg / vect / vect-2.c
blob2bf5ba71b154e5dbf59dfdd74dc66c688a41f0c8
1 /* { dg-require-effective-target vect_int } */
3 #include <stdarg.h>
4 #include "tree-vect.h"
6 #define N 16
8 int main1 ()
9 {
10 char cb[N] = {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45};
11 char ca[N];
12 int i;
14 for (i = 0; i < N; i++)
16 ca[i] = cb[i];
19 /* check results: */
20 for (i = 0; i < N; i++)
22 if (ca[i] != cb[i])
23 abort ();
26 return 0;
29 int main (void)
31 check_vect ();
33 return main1 ();
36 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
37 /* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 0 "vect" } } */
38 /* { dg-final { cleanup-tree-dump "vect" } } */