Merge -r 127928:132243 from trunk
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / no-section-anchors-vect-36.c
blob351463bb152cbd2280158af5258fddb0428d7e10
1 /* { dg-require-effective-target vect_int } */
3 #include <stdarg.h>
4 #include "tree-vect.h"
6 #define N 16
8 struct {
9 char ca[N];
10 char cb[N];
11 } s;
13 __attribute__ ((noinline))
14 int main1 ()
16 int i;
18 for (i = 0; i < N; i++)
20 s.cb[i] = 3*i;
23 for (i = 0; i < N; i++)
25 s.ca[i] = s.cb[i];
28 /* check results: */
29 for (i = 0; i < N; i++)
31 if (s.ca[i] != s.cb[i])
32 abort ();
35 return 0;
38 int main (void)
40 check_vect ();
42 return main1 ();
45 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
46 /* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 0 "vect" } } */
47 /* { dg-final { scan-tree-dump-times "Alignment of access forced using peeling" 0 "vect" } } */
48 /* { dg-final { cleanup-tree-dump "vect" } } */