2006-12-02 04:23:10 +00:00
|
|
|
; RUN: llvm-upgrade < %s | llvm-as | opt -extract-blocks -disable-output
|
2004-08-13 03:08:54 +00:00
|
|
|
|
|
|
|
implementation
|
|
|
|
|
2004-08-13 03:27:48 +00:00
|
|
|
void %test1() {
|
2004-08-13 03:08:54 +00:00
|
|
|
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
|
|
|
|
}
|
2004-08-13 03:27:48 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|