AVR: Assert minimal required bit width of section_common::flags.
[gcc.git] / libgomp / testsuite / libgomp.c / simd-11.c
blob618a8b3ca04b09a4d2f19990fcc4beae64d821d0
1 /* { dg-do run } */
2 /* { dg-additional-options "-msse2" { target sse2_runtime } } */
3 /* { dg-additional-options "-mavx" { target avx_runtime } } */
5 int s = 0, i, j, u;
7 void
8 foo ()
10 #pragma omp for simd schedule(static, 32) reduction(+:s) lastprivate(u) collapse(2)
11 for (i = 0; i < 16; i++)
12 for (j = 0; j < 16; j++)
14 s++;
15 u = i + j;
17 if (i != 16 || j != 16 || s != 256 || u != 30)
18 __builtin_abort ();
21 int
22 main ()
24 foo ();
25 return 0;