repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* config.gcc: Remove MASK_JUMP_IN_DELAY from target_cpu_default2.
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
gomp
/
pr58472.c
blob
355ca4008bfcc20008bc7f792c4f3b7fc233175a
1
/* PR tree-optimization/58472 */
2
/* { dg-do compile } */
3
/* { dg-options "-O2 -Wall -fopenmp" } */
4
5
float
a
[
1024
],
b
[
1024
];
6
7
float
8
foo
()
9
{
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
;
16
}