You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
429 B
20 lines
429 B
; RUN: opt < %s -lowerswitch -disable-output
|
|
|
|
define void @solve() {
|
|
entry:
|
|
%targetBlock = call i16 @solve_code( ) ; <i16> [#uses=1]
|
|
br label %codeReplTail
|
|
then.1: ; preds = %codeReplTail
|
|
ret void
|
|
loopexit.0: ; preds = %codeReplTail
|
|
ret void
|
|
codeReplTail: ; preds = %codeReplTail, %entry
|
|
switch i16 %targetBlock, label %codeReplTail [
|
|
i16 0, label %loopexit.0
|
|
i16 1, label %then.1
|
|
]
|
|
}
|
|
|
|
declare i16 @solve_code()
|
|
|