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
* gcc.dg/torture/stackalign/builtin-apply-2.c: Fix skip-if syntax.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
graphite
/
pr42205-1.c
blob
9cca6dec44a973cad7a5c36b00d7729f9f86d111
1
/* { dg-require-effective-target int32plus } */
2
/* { dg-options "-O1 -ffast-math -floop-interchange" } */
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
}