1 ; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
2 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
3 ; RUN: diff %t1.ll %t2.ll
6 ;; This is an irreducible flow graph
9 define void @"irreducible"(i1 %cond)
11 br i1 %cond, label %X, label %Y
19 ;; This is a pair of loops that share the same header
21 define void @"sharedheader"(i1 %cond)
25 br i1 %cond, label %X, label %Y
33 ;; This is a simple nested loop
34 define void @"nested"(i1 %cond1, i1 %cond2, i1 %cond3)
45 br i1 %cond3, label %Loop3, label %L3Exit
48 br i1 %cond2, label %Loop2, label %L2Exit
51 br i1 %cond1, label %Loop1, label %L1Exit