Merged revisions 208012,208018-208019,208021,208023-208030,208033,208037,208040-20804...
[official-gcc.git] / main / gcc / testsuite / gcc.dg / vect / vect-32.c
blobc869f5ec98974c913c902be9b05119d9fb807270
1 /* { dg-require-effective-target vect_int } */
3 #include <stdarg.h>
4 #include "tree-vect.h"
6 #define N 16
8 __attribute__ ((noinline))
9 int main1 ()
11 struct {
12 char ca[N];
13 } s;
14 int i;
16 for (i = 0; i < N; i++)
18 s.ca[i] = 5;
21 /* check results: */
22 for (i = 0; i < N; i++)
24 if (s.ca[i] != 5)
25 abort ();
28 return 0;
31 int main (void)
33 check_vect ();
35 return main1 ();
38 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
39 /* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 0 "vect" } } */
40 /* { dg-final { cleanup-tree-dump "vect" } } */