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
7 ;; This is an irreducible flow graph
10 define void @"irreducible"(i1 %cond)
12 br i1 %cond, label %X, label %Y
20 ;; This is a pair of loops that share the same header
22 define void @"sharedheader"(i1 %cond)
26 br i1 %cond, label %X, label %Y
34 ;; This is a simple nested loop
35 define void @"nested"(i1 %cond1, i1 %cond2, i1 %cond3)
46 br i1 %cond3, label %Loop3, label %L3Exit
49 br i1 %cond2, label %Loop2, label %L2Exit
52 br i1 %cond1, label %Loop1, label %L1Exit