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 middle-end/77357 - strlen of constant strings not folded
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
pr79354.c
blob
c196155e741e23d41c822ec25cb8e8f93ec5073d
1
/* PR target/79354 */
2
3
int
b
,
f
,
g
;
4
float
e
;
5
unsigned long
d
;
6
7
__attribute__
((
noinline
,
noclone
))
void
8
foo
(
int
*
a
)
9
{
10
for
(
g
=
0
;
g
<
32
;
g
++)
11
if
(
f
)
12
{
13
e
=
d
;
14
__builtin_memcpy
(&
b
, &
e
,
sizeof
(
float
));
15
b
= *
a
;
16
}
17
}
18
19
int
20
main
()
21
{
22
int
h
=
5
;
23
f
=
1
;
24
asm
volatile
(
""
: : :
"memory"
);
25
foo
(&
h
);
26
asm
volatile
(
""
: : :
"memory"
);
27
foo
(&
b
);
28
asm
volatile
(
""
: : :
"memory"
);
29
return
0
;
30
}