1 ; RUN: llc < %s | grep cgfi | count 8
2 ; RUN: llc < %s | grep clgfi | count 2
4 target datalayout = "E-p:64:64:64-i1:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-f128:128:128"
5 target triple = "s390x-unknown-linux-gnu"
7 define void @foo(i64 %a, i64 %b) nounwind {
9 %cmp = icmp eq i64 %a, 0 ; <i1> [#uses=1]
10 br i1 %cmp, label %if.then, label %if.end
12 if.then: ; preds = %entry
13 tail call void @bar() nounwind
16 if.end: ; preds = %entry
22 define void @foo1(i64 %a, i64 %b) nounwind {
24 %cmp = icmp ugt i64 %a, 1 ; <i1> [#uses=1]
25 br i1 %cmp, label %if.then, label %if.end
27 if.then: ; preds = %entry
28 tail call void @bar() nounwind
31 if.end: ; preds = %entry
35 define void @foo2(i64 %a, i64 %b) nounwind {
37 %cmp = icmp ugt i64 %a, 1 ; <i1> [#uses=1]
38 br i1 %cmp, label %if.end, label %if.then
40 if.then: ; preds = %entry
41 tail call void @bar() nounwind
44 if.end: ; preds = %entry
48 define void @foo3(i64 %a) nounwind {
50 %cmp = icmp eq i64 %a, 0 ; <i1> [#uses=1]
51 br i1 %cmp, label %if.end, label %if.then
53 if.then: ; preds = %entry
54 tail call void @bar() nounwind
57 if.end: ; preds = %entry
61 define void @foo4(i64 %a) nounwind {
63 %cmp = icmp eq i64 %a, 1 ; <i1> [#uses=1]
64 br i1 %cmp, label %if.then, label %if.end
66 if.then: ; preds = %entry
67 tail call void @bar() nounwind
70 if.end: ; preds = %entry
74 define void @foo5(i64 %a) nounwind {
76 %cmp = icmp eq i64 %a, 1 ; <i1> [#uses=1]
77 br i1 %cmp, label %if.end, label %if.then
79 if.then: ; preds = %entry
80 tail call void @bar() nounwind
83 if.end: ; preds = %entry
87 define void @foo6(i64 %a) nounwind {
89 %cmp = icmp slt i64 %a, 1 ; <i1> [#uses=1]
90 br i1 %cmp, label %if.then, label %if.end
92 if.then: ; preds = %entry
93 tail call void @bar() nounwind
96 if.end: ; preds = %entry
100 define void @foo7(i64 %a) nounwind {
102 %cmp = icmp sgt i64 %a, 1 ; <i1> [#uses=1]
103 br i1 %cmp, label %if.then, label %if.end
105 if.then: ; preds = %entry
106 tail call void @bar() nounwind
109 if.end: ; preds = %entry
113 define void @foo8(i64 %a) nounwind {
115 %cmp = icmp sgt i64 %a, 1 ; <i1> [#uses=1]
116 br i1 %cmp, label %if.end, label %if.then
118 if.then: ; preds = %entry
119 tail call void @bar() nounwind
122 if.end: ; preds = %entry
126 define void @foo9(i64 %a) nounwind {
128 %cmp = icmp slt i64 %a, 1 ; <i1> [#uses=1]
129 br i1 %cmp, label %if.end, label %if.then
131 if.then: ; preds = %entry
132 tail call void @bar() nounwind
135 if.end: ; preds = %entry