Sign in
llvm
/
llvm-test-suite
/
8e6f3ef1b8f30cca66fd1a4e35d16bdfd0c622ba
/
.
/
SingleSource
/
Regression
/
C
/
gcc-c-torture
/
execute
/
20020916-1.c
blob: aa7e60c96ccc294777c3d50f06c6aec610b25df8 [
file
] [
log
] [
blame
]
/* Distilled from try_pre_increment in flow.c. If-conversion inserted
new instructions at the wrong place on ppc. */
int
foo
(
int
a
)
{
int
x
;
x
=
0
;
if
(
a
>
0
)
x
=
1
;
if
(
a
<
0
)
x
=
1
;
return
x
;
}
int
main
()
{
if
(
foo
(
1
)
!=
1
)
abort
();
return
0
;
}