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
8 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"
9 target triple = "s390x-unknown-linux-gnu"
11 define void @foo(i64 %a, i64 %b) nounwind {
13 %cmp = icmp ult i64 %a, %b ; <i1> [#uses=1]
14 br i1 %cmp, label %if.then, label %if.end
16 if.then: ; preds = %entry
17 tail call void @bar() nounwind
20 if.end: ; preds = %entry
26 define void @foo1(i64 %a, i64 %b) nounwind {
28 %cmp = icmp ugt i64 %a, %b ; <i1> [#uses=1]
29 br i1 %cmp, label %if.then, label %if.end
31 if.then: ; preds = %entry
32 tail call void @bar() nounwind
35 if.end: ; preds = %entry
39 define void @foo2(i64 %a, i64 %b) nounwind {
41 %cmp = icmp ugt i64 %a, %b ; <i1> [#uses=1]
42 br i1 %cmp, label %if.end, label %if.then
44 if.then: ; preds = %entry
45 tail call void @bar() nounwind
48 if.end: ; preds = %entry
52 define void @foo3(i64 %a, i64 %b) nounwind {
54 %cmp = icmp ult i64 %a, %b ; <i1> [#uses=1]
55 br i1 %cmp, label %if.end, label %if.then
57 if.then: ; preds = %entry
58 tail call void @bar() nounwind
61 if.end: ; preds = %entry
65 define void @foo4(i64 %a, i64 %b) nounwind {
67 %cmp = icmp eq i64 %a, %b ; <i1> [#uses=1]
68 br i1 %cmp, label %if.then, label %if.end
70 if.then: ; preds = %entry
71 tail call void @bar() nounwind
74 if.end: ; preds = %entry
78 define void @foo5(i64 %a, i64 %b) nounwind {
80 %cmp = icmp eq i64 %a, %b ; <i1> [#uses=1]
81 br i1 %cmp, label %if.end, label %if.then
83 if.then: ; preds = %entry
84 tail call void @bar() nounwind
87 if.end: ; preds = %entry
91 define void @foo6(i64 %a, i64 %b) nounwind {
93 %cmp = icmp slt i64 %a, %b ; <i1> [#uses=1]
94 br i1 %cmp, label %if.then, label %if.end
96 if.then: ; preds = %entry
97 tail call void @bar() nounwind
100 if.end: ; preds = %entry
104 define void @foo7(i64 %a, i64 %b) nounwind {
106 %cmp = icmp sgt i64 %a, %b ; <i1> [#uses=1]
107 br i1 %cmp, label %if.then, label %if.end
109 if.then: ; preds = %entry
110 tail call void @bar() nounwind
113 if.end: ; preds = %entry
117 define void @foo8(i64 %a, i64 %b) nounwind {
119 %cmp = icmp sgt i64 %a, %b ; <i1> [#uses=1]
120 br i1 %cmp, label %if.end, label %if.then
122 if.then: ; preds = %entry
123 tail call void @bar() nounwind
126 if.end: ; preds = %entry
130 define void @foo9(i64 %a, i64 %b) nounwind {
132 %cmp = icmp slt i64 %a, %b ; <i1> [#uses=1]
133 br i1 %cmp, label %if.end, label %if.then
135 if.then: ; preds = %entry
136 tail call void @bar() nounwind
139 if.end: ; preds = %entry