No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gcc4 / gcc / testsuite / gcc.dg / vect / vect-34.c
blobf83d4142bbc6ea00fbbab729bd8f3a59292164f0
1 /* { dg-require-effective-target vect_int } */
3 #include <stdarg.h>
4 #include "tree-vect.h"
6 #define N 16
8 int main1 ()
9 {
10 struct {
11 char ca[N];
12 } s;
13 char cb[N] = {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45};
14 int i;
16 for (i = 0; i < N; i++)
18 s.ca[i] = cb[i];
21 /* check results: */
22 for (i = 0; i < N; i++)
24 if (s.ca[i] != cb[i])
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" } } */