blob: 8de6472299428303ffa33486bf7c2e96cd79f5e0 [file] [log] [blame]
Chandler Carruth5da53432012-07-02 18:37:59 +00001; RUN: opt -regions -print-region-style=bb -analyze < %s 2>&1 | FileCheck -check-prefix=BBIT %s
2; RUN: opt -regions -print-region-style=rn -analyze < %s 2>&1 | FileCheck -check-prefix=RNIT %s
Tobias Grosser336734a2010-07-22 07:46:31 +00003
4define void @normal_condition_0() nounwind {
5bb38: ; preds = %bb34, %bb34, %bb37
6 switch i32 undef, label %bb42 [
7 i32 67, label %bb42
8 i32 90, label %bb41
9 ]
10bb41: ; preds = %bb38
11 br label %bb42
12bb42: ; preds = %bb38, %bb38, %bb41
13 ret void
14}
15
16; BBIT: bb38, bb42, bb41,
17; BBIT: bb38, bb41,
18
19; RNIT: bb38 => bb42, bb42,
20; RNIT: bb38, bb41,
21
22define void @normal_condition_1() nounwind {
23bb38: ; preds = %bb34, %bb34, %bb37
24 switch i32 undef, label %bb41 [
25 i32 67, label %bb42
26 i32 90, label %bb42
27 ]
28bb41: ; preds = %bb38
29 br label %bb42
30bb42: ; preds = %bb38, %bb38, %bb41
31 ret void
32}
33
34; BBIT: bb38, bb41, bb42,
35; BBIT: bb38, bb41,
36
37; RNIT: bb38 => bb42, bb42,
38; RNIT: bb38, bb41,