Merge reload-branch up to revision 101000
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / gen-vect-32.c
blob1a46a309daf05e27641ec6ea2d4f5f4266df5e90
1 /* { dg-do run { target vect_cmdline_needed } } */
2 /* { dg-options "-O2 -ftree-vectorize -ftree-vectorizer-verbose=3 -fdump-tree-vect-stats" } */
4 #include <stdlib.h>
6 #define N 16
8 int main ()
9 {
10 struct {
11 char ca[N];
12 } s;
13 int i;
15 for (i = 0; i < N; i++)
17 s.ca[i] = 5;
20 /* check results: */
21 for (i = 0; i < N; i++)
23 if (s.ca[i] != 5)
24 abort ();
27 return 0;
31 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
32 /* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 0 "vect" } } */
33 /* { dg-final { cleanup-tree-dump "vect" } } */