1 ; RUN: llc < %s | grep jl | count 3
2 ; RUN: llc < %s | grep jh | count 3
3 ; RUN: llc < %s | grep je | count 2
4 ; RUN: llc < %s | grep jne | count 2
6 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"
7 target triple = "s390x-unknown-linux-gnu"
9 define void @foo(i32 %a, i32 %b) nounwind {
11 %cmp = icmp eq i32 %a, 0 ; <i1> [#uses=1]
12 br i1 %cmp, label %if.then, label %if.end
14 if.then: ; preds = %entry
15 tail call void @bar() nounwind
18 if.end: ; preds = %entry
24 define void @foo1(i32 %a, i32 %b) nounwind {
26 %cmp = icmp ugt i32 %a, 1 ; <i1> [#uses=1]
27 br i1 %cmp, label %if.then, label %if.end
29 if.then: ; preds = %entry
30 tail call void @bar() nounwind
33 if.end: ; preds = %entry
37 define void @foo2(i32 %a, i32 %b) nounwind {
39 %cmp = icmp ugt i32 %a, 1 ; <i1> [#uses=1]
40 br i1 %cmp, label %if.end, label %if.then
42 if.then: ; preds = %entry
43 tail call void @bar() nounwind
46 if.end: ; preds = %entry
50 define void @foo3(i32 %a) nounwind {
52 %cmp = icmp eq i32 %a, 0 ; <i1> [#uses=1]
53 br i1 %cmp, label %if.end, label %if.then
55 if.then: ; preds = %entry
56 tail call void @bar() nounwind
59 if.end: ; preds = %entry
63 define void @foo4(i32 %a) nounwind {
65 %cmp = icmp eq i32 %a, 1 ; <i1> [#uses=1]
66 br i1 %cmp, label %if.then, label %if.end
68 if.then: ; preds = %entry
69 tail call void @bar() nounwind
72 if.end: ; preds = %entry
76 define void @foo5(i32 %a) nounwind {
78 %cmp = icmp eq i32 %a, 1 ; <i1> [#uses=1]
79 br i1 %cmp, label %if.end, label %if.then
81 if.then: ; preds = %entry
82 tail call void @bar() nounwind
85 if.end: ; preds = %entry
89 define void @foo6(i32 %a) nounwind {
91 %cmp = icmp slt i32 %a, 1 ; <i1> [#uses=1]
92 br i1 %cmp, label %if.then, label %if.end
94 if.then: ; preds = %entry
95 tail call void @bar() nounwind
98 if.end: ; preds = %entry
102 define void @foo7(i32 %a) nounwind {
104 %cmp = icmp sgt i32 %a, 1 ; <i1> [#uses=1]
105 br i1 %cmp, label %if.then, label %if.end
107 if.then: ; preds = %entry
108 tail call void @bar() nounwind
111 if.end: ; preds = %entry
115 define void @foo8(i32 %a) nounwind {
117 %cmp = icmp sgt i32 %a, 1 ; <i1> [#uses=1]
118 br i1 %cmp, label %if.end, label %if.then
120 if.then: ; preds = %entry
121 tail call void @bar() nounwind
124 if.end: ; preds = %entry
128 define void @foo9(i32 %a) nounwind {
130 %cmp = icmp slt i32 %a, 1 ; <i1> [#uses=1]
131 br i1 %cmp, label %if.end, label %if.then
133 if.then: ; preds = %entry
134 tail call void @bar() nounwind
137 if.end: ; preds = %entry