sched1: debug/model: dump predecessor list and BB num [NFC]
[gcc.git] / libgomp / testsuite / libgomp.c / simd-12.c
blob8f15daf82ce4022be9693e23d2fe10d8499c295f
1 /* { dg-do run } */
2 /* { dg-additional-options "-msse2" { target sse2_runtime } } */
3 /* { dg-additional-options "-mavx" { target avx_runtime } } */
5 int
6 main ()
8 int k = 0, i, s = 0;
9 #pragma omp parallel
10 #pragma omp for simd linear(k : 3) reduction(+: s) schedule (static, 16)
11 for (i = 0; i < 128; i++)
13 k = k + 3;
14 s = s + k;
16 if (s != 128 * 129 / 2 * 3) __builtin_abort ();
17 return 0;