1; REQUIRES: asserts
2; RUN: opt -regions -analyze -enable-new-pm=0 < %s | FileCheck %s
3; RUN: opt -regions -stats -analyze -enable-new-pm=0 < %s 2>&1 | FileCheck -check-prefix=STAT %s
4; RUN: opt -regions -print-region-style=bb  -analyze -enable-new-pm=0 < %s 2>&1 | FileCheck -check-prefix=BBIT %s
5; RUN: opt -regions -print-region-style=rn  -analyze -enable-new-pm=0 < %s 2>&1 | FileCheck -check-prefix=RNIT %s
6
7; RUN: opt < %s -passes='print<regions>' 2>&1 | FileCheck %s
8; RUN: opt < %s -passes='print<regions>' -stats 2>&1 | FileCheck -check-prefix=STAT %s
9; RUN: opt -passes='print<regions>' -print-region-style=bb < %s 2>&1 | FileCheck -check-prefix=BBIT %s
10; RUN: opt -passes='print<regions>' -print-region-style=rn < %s 2>&1 | FileCheck -check-prefix=RNIT %s
11
12define void @BZ2_blockSort() nounwind {
13start:
14  br label %while
15
16while:
17  br label %while.body134.i.i
18
19while.body134.i.i:
20  br i1 1, label %end, label %w
21
22w:
23  br label %if.end140.i.i
24
25if.end140.i.i:
26  br i1 1, label %while.end186.i.i, label %if.end183.i.i
27
28if.end183.i.i:
29  br label %while.body134.i.i
30
31while.end186.i.i:
32  br label %while
33
34end:
35  ret void
36}
37; CHECK-NOT: =>
38; CHECK: [0] start => <Function Return>
39; CHECK: [1] while => end
40
41; STAT: 2 region - The # of regions
42; STAT: 1 region - The # of simple regions
43
44; BBIT: start, while, while.body134.i.i, end, w, if.end140.i.i, while.end186.i.i, if.end183.i.i,
45; BBIT: while, while.body134.i.i, w, if.end140.i.i, while.end186.i.i, if.end183.i.i,
46
47; RNIT: start, while => end, end,
48; RNIT: while, while.body134.i.i, w, if.end140.i.i, while.end186.i.i, if.end183.i.i,
49