c++: remove Concepts TS code
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-2.c
blob2635f6cb295e8b06b6c0b39d046f645b07ec751a
1 /* { dg-require-effective-target vect_int } */
2 /* { dg-add-options bind_pic_locally } */
3 /* { dg-additional-options "-fdump-tree-optimized-details-blocks" } */
5 #include <stdarg.h>
6 #include "tree-vect.h"
8 #define N 16
10 char cb[N] = {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45};
11 char ca[N] = {};
13 __attribute__ ((noinline))
14 int main1 ()
16 int i;
18 for (i = 0; i < N; i++)
20 ca[i] = cb[i];
23 /* check results: */
24 #pragma GCC novector
25 for (i = 0; i < N; i++)
27 if (ca[i] != cb[i])
28 abort ();
31 return 0;
34 int main (void)
36 check_vect ();
38 return main1 ();
41 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
42 /* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 0 "vect" } } */
43 /* { dg-final { scan-tree-dump-not "Invalid sum" "optimized" } } */