Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
toolchain
/
llvm-project
/
f391883670caecc01973bc6c69fc1f22c20a2612
/
.
/
llvm
/
test
/
Transforms
/
SCCP
/
2004-12-10-UndefBranchBug.ll
blob: c662e0f711b03781c7c060a0f23af888a8d30bb2 [
file
] [
log
] [
blame
]
; RUN: llvm-upgrade < %s | llvm-as | opt -sccp | llvm-dis | grep {ret i32 1}
; This function definitely returns 1, even if we don't know the direction
; of the branch.
int
%foo
()
{
br
bool
undef
,
label
%T
,
label
%T
T
:
%X
=
add
int
0
,
1
ret
int
%X
}