1 ; RUN: llc < %s | grep je | count 1
2 ; RUN: llc < %s | grep jne | count 1
3 ; RUN: llc < %s | grep jhe | count 2
4 ; RUN: llc < %s | grep jle | count 2
5 ; RUN: llc < %s | grep jh | count 4
6 ; RUN: llc < %s | grep jl | count 4
9 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"
10 target triple = "s390x-unknown-linux-gnu"
12 define void @foo(i32 %a, i32 %b) nounwind {
14 %cmp = icmp ult i32 %a, %b ; <i1> [#uses=1]
15 br i1 %cmp, label %if.then, label %if.end
17 if.then: ; preds = %entry
18 tail call void @bar() nounwind
21 if.end: ; preds = %entry
27 define void @foo1(i32 %a, i32 %b) nounwind {
29 %cmp = icmp ugt i32 %a, %b ; <i1> [#uses=1]
30 br i1 %cmp, label %if.then, label %if.end
32 if.then: ; preds = %entry
33 tail call void @bar() nounwind
36 if.end: ; preds = %entry
40 define void @foo2(i32 %a, i32 %b) nounwind {
42 %cmp = icmp ugt i32 %a, %b ; <i1> [#uses=1]
43 br i1 %cmp, label %if.end, label %if.then
45 if.then: ; preds = %entry
46 tail call void @bar() nounwind
49 if.end: ; preds = %entry
53 define void @foo3(i32 %a, i32 %b) nounwind {
55 %cmp = icmp ult i32 %a, %b ; <i1> [#uses=1]
56 br i1 %cmp, label %if.end, label %if.then
58 if.then: ; preds = %entry
59 tail call void @bar() nounwind
62 if.end: ; preds = %entry
66 define void @foo4(i32 %a, i32 %b) nounwind {
68 %cmp = icmp eq i32 %a, %b ; <i1> [#uses=1]
69 br i1 %cmp, label %if.then, label %if.end
71 if.then: ; preds = %entry
72 tail call void @bar() nounwind
75 if.end: ; preds = %entry
79 define void @foo5(i32 %a, i32 %b) nounwind {
81 %cmp = icmp eq i32 %a, %b ; <i1> [#uses=1]
82 br i1 %cmp, label %if.end, label %if.then
84 if.then: ; preds = %entry
85 tail call void @bar() nounwind
88 if.end: ; preds = %entry
92 define void @foo6(i32 %a, i32 %b) nounwind {
94 %cmp = icmp slt i32 %a, %b ; <i1> [#uses=1]
95 br i1 %cmp, label %if.then, label %if.end
97 if.then: ; preds = %entry
98 tail call void @bar() nounwind
101 if.end: ; preds = %entry
105 define void @foo7(i32 %a, i32 %b) nounwind {
107 %cmp = icmp sgt i32 %a, %b ; <i1> [#uses=1]
108 br i1 %cmp, label %if.then, label %if.end
110 if.then: ; preds = %entry
111 tail call void @bar() nounwind
114 if.end: ; preds = %entry
118 define void @foo8(i32 %a, i32 %b) nounwind {
120 %cmp = icmp sgt i32 %a, %b ; <i1> [#uses=1]
121 br i1 %cmp, label %if.end, label %if.then
123 if.then: ; preds = %entry
124 tail call void @bar() nounwind
127 if.end: ; preds = %entry
131 define void @foo9(i32 %a, i32 %b) nounwind {
133 %cmp = icmp slt i32 %a, %b ; <i1> [#uses=1]
134 br i1 %cmp, label %if.end, label %if.then
136 if.then: ; preds = %entry
137 tail call void @bar() nounwind
140 if.end: ; preds = %entry