Avoid expicit builtion list in tree-ssa-dce
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / no-section-anchors-vect-34.c
blob604d4b1bc6772f7bf9466b204ebf43e639642a02
1 /* { dg-require-effective-target vect_int } */
2 /* { dg-add-options bind_pic_locally } */
4 #include <stdarg.h>
5 #include "tree-vect.h"
7 #define N 16
9 struct {
10 char ca[N];
11 } s = {};
12 char cb[N] = {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45};
14 __attribute__ ((noinline))
15 int main1 ()
17 int i;
19 for (i = 0; i < N; i++)
21 s.ca[i] = cb[i];
24 /* check results: */
25 #pragma GCC novector
26 for (i = 0; i < N; i++)
28 if (s.ca[i] != cb[i])
29 abort ();
32 return 0;
35 int main (void)
37 check_vect ();
39 return main1 ();
42 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
43 /* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 0 "vect" } } */