openmp: Fix signed/unsigned warning
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-34-big-array.c
blobe982c2accb43ecb327f57c57b64205023aaf8a95
1 /* { dg-require-effective-target vect_int } */
2 /* { dg-additional-options "-fdump-tree-optimized-details-blocks" } */
4 #include <stdarg.h>
5 #include "tree-vect.h"
7 #define N 128
9 struct {
10 char ca[N];
11 } s;
12 char cb[N];
14 __attribute__ ((noinline))
15 int main1 ()
17 int i;
19 for (i = 0; i < N; i++)
21 cb[i] = i*3;
22 asm volatile ("" ::: "memory");
24 for (i = 0; i < N; i++)
26 s.ca[i] = cb[i];
29 /* check results: */
30 #pragma GCC novector
31 for (i = 0; i < N; i++)
33 if (s.ca[i] != cb[i])
34 abort ();
37 return 0;
40 int main (void)
42 check_vect ();
44 return main1 ();
47 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
48 /* { dg-final { scan-tree-dump-not "Invalid sum" "optimized" } } */