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
PR tree-optimization/84740
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
graphite
/
pr42205-1.c
blob
f08bbec96e51ab09408d1b89e9e2ba1f430a6cf4
1
/* { dg-require-effective-target int32plus } */
2
/* { dg-options "-O1 -ffast-math -floop-nest-optimize" } */
3
4
int
adler32
(
int
adler
,
char
*
buf
,
int
n
)
5
{
6
int
sum
=
0
;
7
do
{
8
adler
+=
buf
[
0
];
9
sum
+=
adler
;
10
adler
+=
buf
[
1
];
11
sum
+=
adler
;
12
adler
+=
buf
[
2
];
13
sum
+=
adler
;
14
adler
+=
buf
[
3
];
15
sum
+=
adler
;
16
}
while
(--
n
);
17
return
adler
| (
sum
<<
16
);
18
}