openmp: Fix signed/unsigned warning
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-early-break_57.c
blob319bd125c3156f13c300ff2b94d269bb9ec29e97
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" } } */
9 /* { dg-final { scan-tree-dump "epilog loop required" "vect" } } */
11 void abort ();
13 unsigned short sa[32];
14 unsigned short sc[32] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,
15 16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31};
16 unsigned short sb[32] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,
17 16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31};
18 unsigned int ia[32];
19 unsigned int ic[32] = {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,
20 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
21 unsigned int ib[32] = {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,
22 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
24 int main2 (int n)
26 int i;
27 for (i = 0; i < n; i++)
29 if (sa[i+3] != sb[i] + sc[i] || ia[i+3] != ib[i] + ic[i])
30 abort ();