Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.dg / vect / vect-26.c
blob4bb3b55493b568d33d9cc5b594f8a19b21539bb0
1 /* { dg-require-effective-target vect_int } */
3 #include <stdarg.h>
4 #include "tree-vect.h"
6 #define N 128
8 /* unaligned store. */
10 int main1 ()
12 int i;
13 int ia[N+1];
15 for (i = 1; i <= N; i++)
17 ia[i] = 5;
20 /* check results: */
21 for (i = 1; i <= N; i++)
23 if (ia[i] != 5)
24 abort ();
27 return 0;
30 int main (void)
32 check_vect ();
34 return main1 ();
37 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
38 /* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 0 "vect" } } */
39 /* { dg-final { scan-tree-dump-times "Alignment of access forced using peeling" 1 "vect" } } */
40 /* { dg-final { cleanup-tree-dump "vect" } } */