openmp: Fix signed/unsigned warning
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-early-break_5.c
blob1468c795b6201f347fe53bc85ddc46bc96c73821
1 /* { dg-add-options vect_early_break } */
2 /* { dg-do compile } */
3 /* { dg-require-effective-target vect_early_break } */
4 /* { dg-require-effective-target vect_int } */
6 /* { dg-additional-options "-Ofast" } */
8 /* { dg-final { scan-tree-dump "LOOP VECTORIZED" "vect" } } */
10 #define N 1024
11 unsigned vect_a[N];
12 unsigned vect_b[N];
14 unsigned test4(unsigned x)
16 unsigned ret = 0;
17 for (int i = 0; i < N; i++)
19 vect_b[i] = x + i;
20 if (vect_a[i] > x)
21 return vect_a[i];
22 vect_a[i] = x;
24 return ret;