repo.or.cz
/
official-gcc
/
graphite-test-results.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git]
/
gcc
/
testsuite
/
gcc.dg
/
vect
/
fast-math-vect-reduc-9.c
blob
eb703f5af86484794fe9434e783cddcbe3f54a62
1
/* { dg-require-effective-target vect_float } */
2
3
#include
"tree-vect.h"
4
5
float
x
[
1024
];
6
float
7
test
(
void
)
8
{
9
int
i
;
10
float
gosa
=
0.0
;
11
for
(
i
=
0
;
i
<
1024
; ++
i
)
12
{
13
float
tem
=
x
[
i
];
14
gosa
+=
tem
*
tem
;
15
}
16
return
gosa
;
17
}
18
19
int
main
(
void
)
20
{
21
check_vect
();
22
23
if
(
test
() !=
0.0
)
24
abort
();
25
26
return
0
;
27
}
28
29
/* { dg-final { scan-tree-dump "vectorized 1 loops" "vect" } } */
30
/* { dg-final { cleanup-tree-dump "vect" } } */