repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
gcc.dg
/
tree-ssa
/
pr20913.c
blob
fb5461a26092ff493c7dd32e2c547327a398c46f
1
/* PR tree-optimization/20913
2
COPY-PROP did not fold COND_EXPR, blocking some copy propagation
3
opportunities. */
4
5
/* { dg-do link } */
6
/* { dg-options "-O2 -fno-tree-dominator-opts" } */
7
8
int
9
foo
(
int
a
,
int
b
,
int
c
,
int
d
)
10
{
11
int
x
,
y
;
12
13
b
=
a
;
14
if
(
a
==
b
)
15
x
=
c
;
16
else
17
{
18
link_error
();
19
x
=
d
;
20
}
21
22
if
(
x
==
c
)
23
return
a
;
24
else
25
{
26
link_error
();
27
return
b
;
28
}
29
}
30
31
main
()
32
{
33
foo
(
1
,
2
,
3
,
4
);
34
}