4f695844ee6a443f593269ca8d9383e6f8bd46ef
[oota-llvm.git] / test / Transforms / CodeExtractor / 2004-08-12-BlockExtractPHI.ll
1 ; RUN: llvm-as < %s | opt -extract-blocks -disable-output
2
3 implementation
4
5 void %test1() {
6 no_exit.0.i:
7         br bool false, label %yylex.entry, label %yylex.entry
8
9 yylex.entry:
10         %tmp.1027 = phi int  [ 0, %no_exit.0.i ], [ 0, %no_exit.0.i ]
11         ret void
12 }
13
14 void %test2() {
15 no_exit.0.i:
16         switch uint 0, label %yylex.entry [
17             uint 0, label %yylex.entry
18             uint 1, label %foo
19         ]
20
21 yylex.entry:
22         %tmp.1027 = phi int  [ 0, %no_exit.0.i ], [ 0, %no_exit.0.i ]
23         ret void
24 foo:
25         ret void
26 }
27