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 debug/48204
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr42916.c
blob
d32ba94882a1cfaf01b496ed3c16981f73a6d24f
1
/* { dg-do compile } */
2
/* { dg-options "-O1 -funroll-loops -ftree-vectorize -fcompare-debug" } */
3
4
int
seed
;
5
6
static
inline
int
hash
(
const char
*
str
)
7
{
8
int
h
=
seed
++;
9
int
i
=
12
;
10
while
(
i
--)
11
h
+= (
h
<<
3
) ^ *
str
++;
12
return
h
;
13
}
14
15
void
f
(
const char
*
str
,
int
*
h
)
16
{
17
int
i
=
6
;
18
while
(
i
--)
19
*
h
++ =
hash
(
str
);
20
}