Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.dg / vect / vect-89.c
blob23e3a3a0d6511d1198fe6af99de0d5f50321bd19
1 /* { dg-require-effective-target vect_int } */
3 #include <stdarg.h>
4 #include "tree-vect.h"
6 #define N 16
8 struct tmp_struct
10 int x;
11 int y[N];
14 int main1 ()
16 int i, *q;
17 struct tmp_struct tmp, *p;
19 p = &tmp;
20 q = p->y;
22 for (i = 0; i < N; i++)
24 *q++ = 5;
27 /* check results: */
28 for (i = 0; i < N; i++)
30 if (p->y[i] != 5)
32 abort ();
36 return 0;
39 int main (void)
41 check_vect ();
43 return main1 ();
46 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
47 /* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 0 "vect" } } */
48 /* { dg-final { scan-tree-dump-times "Alignment of access forced using peeling" 1 "vect" } } */
49 /* { dg-final { cleanup-tree-dump "vect" } } */