mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-30 07:22:55 +01:00
7f5ef2d7a5
llvm-svn: 32115
22 lines
467 B
LLVM
22 lines
467 B
LLVM
; RUN: llvm-upgrade < %s | llvm-as | opt -lowerswitch -disable-output
|
|
|
|
void %solve() {
|
|
entry:
|
|
%targetBlock = call ushort %solve_code( ) ; <ushort> [#uses=1]
|
|
br label %codeReplTail
|
|
|
|
then.1: ; preds = %codeReplTail
|
|
ret void
|
|
|
|
loopexit.0: ; preds = %codeReplTail
|
|
ret void
|
|
|
|
codeReplTail: ; preds = %entry, %codeReplTail
|
|
switch ushort %targetBlock, label %codeReplTail [
|
|
ushort 0, label %loopexit.0
|
|
ushort 1, label %then.1
|
|
]
|
|
}
|
|
|
|
declare ushort %solve_code()
|