zpu: managed to compile program that writes constant to global variable
[llvm/zpu.git] / test / Analysis / RegionInfo / loops_1.ll
blobd4bf3cc50118273be92b3c303f6a7efec2d0bff6
1 ; RUN: opt -regions -analyze < %s | FileCheck %s
2 ; RUN: opt -regions -stats < %s |& FileCheck -check-prefix=STAT %s
3 ; RUN: opt -regions -print-region-style=bb  -analyze < %s |& FileCheck -check-prefix=BBIT %s
4 ; RUN: opt -regions -print-region-style=rn  -analyze < %s |& FileCheck -check-prefix=RNIT %s
6 define internal fastcc zeroext i8 @loops_1() nounwind {
7 entry:
8   br i1 1, label %outer , label %a
11   br label %body
13 outer:
14   br label %body
16 body:
17   br i1 1, label %land, label %if
19 land:
20   br i1 1, label %exit, label %end
22 exit:
23   br i1 1, label %if, label %end
25 if:
26   br label %outer
28 end:
29   ret i8 1
31 ; CHECK-NOT: =>
32 ; CHECK: [0] entry => <Function Return>
33 ; CHECK-NEXT: [1] entry => end
34 ; STAT: 2 region - The # of regions
36 ; BBIT: entry, outer, body, land, exit, if, end, a,
37 ; BBIT: entry, outer, body, land, exit, if, a,
39 ; RNIT: entry => end, end,
40 ; RNIT: entry, outer, body, land, exit, if, a,