new testcase
[oota-llvm.git] / test / Transforms / BranchCombine / 2004-06-01-Simple.ll
1 ; Basic test of -branch-combine functionality
2 ; RUN: llvm-as < %s | opt -branch-combine | llvm-dis | egrep 'newCommon:.*; preds =.*no_exit.1' | grep loopentry.2
3
4 target endian = big
5 target pointersize = 64
6
7 implementation   ; Functions:
8
9 void %main() {
10 entry:
11         br bool false, label %__main.entry, label %endif.0.i
12
13 endif.0.i:              ; preds = %entry
14         ret void
15
16 __main.entry:           ; preds = %entry
17         br label %no_exit.1
18
19 no_exit.1:              ; preds = %__main.entry, %no_exit.1, %loopentry.2
20         br bool false, label %loopentry.2, label %no_exit.1
21
22 loopentry.2:            ; preds = %no_exit.1
23         br label %no_exit.1
24 }