* config.gcc: Remove MASK_JUMP_IN_DELAY from target_cpu_default2.
[official-gcc.git] / gcc / testsuite / c-c++-common / gomp / pr58472.c
blob355ca4008bfcc20008bc7f792c4f3b7fc233175a
1 /* PR tree-optimization/58472 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -Wall -fopenmp" } */
5 float a[1024], b[1024];
7 float
8 foo ()
10 float s = 0.f;
11 unsigned int i;
12 #pragma omp simd reduction(+:s)
13 for (i = 0; i < 1024; ++i)
14 s += a[i] * b[i];
15 return s;