Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.dg / vect / pr18536.c
blob4bf41bec40151cd573742816ad7321dd69479210
1 /* { dg-require-effective-target vect_int } */
3 #include <stdarg.h>
4 #include "tree-vect.h"
6 #define N 16
8 int main1 (short a, short *b)
10 while (++a < 4) *b++ = 2;
12 return 0;
15 int main (void)
17 int i = 0;
18 short x[N];
20 check_vect ();
22 main1 (0, x);
24 /* check results: */
25 while (++i < 4)
27 if (x[i-1] != 2)
28 abort ();
31 return 0;
34 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
35 /* { dg-final { cleanup-tree-dump "vect" } } */