mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-15 04:08:07 +00:00
69ccadd753
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32115 91177308-0d34-0410-b5e6-96231b3b80d8
28 lines
550 B
LLVM
28 lines
550 B
LLVM
; RUN: llvm-upgrade < %s | llvm-as | opt -extract-blocks -disable-output
|
|
|
|
implementation
|
|
|
|
void %test1() {
|
|
no_exit.0.i:
|
|
br bool false, label %yylex.entry, label %yylex.entry
|
|
|
|
yylex.entry:
|
|
%tmp.1027 = phi int [ 0, %no_exit.0.i ], [ 0, %no_exit.0.i ]
|
|
ret void
|
|
}
|
|
|
|
void %test2() {
|
|
no_exit.0.i:
|
|
switch uint 0, label %yylex.entry [
|
|
uint 0, label %yylex.entry
|
|
uint 1, label %foo
|
|
]
|
|
|
|
yylex.entry:
|
|
%tmp.1027 = phi int [ 0, %no_exit.0.i ], [ 0, %no_exit.0.i ]
|
|
ret void
|
|
foo:
|
|
ret void
|
|
}
|
|
|