new testcase
[oota-llvm.git] / test / Transforms / LoopSimplify / 2004-04-12-LoopSimplify-SwitchBackedges.ll
1 ; RUN: llvm-as < %s | opt -loopsimplify -disable-output
2
3 implementation   
4
5 void %test() {
6 loopentry.0:
7         br label %loopentry.1
8
9 loopentry.1:
10         %pixel.4 = phi int [ 0, %loopentry.0 ], [ %pixel.4, %loopentry.1], [ %tmp.370, %then.6 ], [ %tmp.370, %then.6 ]
11         br bool false, label %then.6, label %loopentry.1
12
13 then.6:
14         %tmp.370 = add int 0, 0         ; <int> [#uses=2]
15         switch uint 0, label %label.7 [
16                  uint 6408, label %loopentry.1
17                  uint 32841, label %loopentry.1
18         ]
19
20 label.7:                ; preds = %then.6
21         ret void
22 }