1 /* PR tree-optimization/58392 */
3 /* { dg-additional-options "-msse2" { target sse2_runtime } } */
4 /* { dg-additional-options "-mavx" { target avx_runtime } } */
6 extern void abort (void);
9 __attribute__((noinline
, noclone
)) int
13 #pragma omp parallel for reduction(+: c)
14 for (j
= 0; j
< a
; j
+= 32)
17 #pragma omp simd reduction(+: c)
18 for (l
= 0; l
< b
; ++l
)
24 __attribute__((noinline
, noclone
)) int
28 #pragma omp parallel for simd reduction(+: c)
29 for (j
= 0; j
< a
; ++j
)
34 __attribute__((noinline
)) static int
38 #pragma omp simd reduction(+: c)
39 for (j
= 0; j
< a
; ++j
)
48 for (i
= 0; i
< 32 * 32; i
++)
50 if (foo (32 * 32, 32) != (31 * 32 / 2) * 32)
52 if (bar (32 * 32) != (31 * 32 / 2) * 32)
54 if (baz (32 * 32) != (31 * 32 / 2) * 32)