Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.dg / vect / pr18557.c
blob1bd7aae7898a24f9bdf6a7e4f5a1bfd86ea69939
1 /* { dg-require-effective-target vect_int } */
3 #include <stdarg.h>
4 #include "tree-vect.h"
5 #include <stdio.h>
7 int main1 (unsigned int *p) {
8 int i;
9 for (i = 0; i < 64; ++i)
10 p[i] = 2;
12 /* check results: */
13 for (i = 0; i < 64; ++i)
14 if (p[i] != 2)
15 abort ();
18 int main (void)
20 int i = 0;
21 unsigned int x[65];
23 check_vect ();
25 main1 (x);
26 main1 (x+1);
28 return 0;
31 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
32 /* { dg-final { cleanup-tree-dump "vect" } } */