1 ; RUN: llc < %s -mtriple=ve-unknown-unknown | FileCheck %s
3 define zeroext i1 @setccaf(float, float) {
4 ; CHECK-LABEL: setccaf:
6 ; CHECK-NEXT: or %s0, 0, (0)1
7 ; CHECK-NEXT: b.l.t (, %s10)
8 %3 = fcmp false float %0, %1
12 define zeroext i1 @setccat(float, float) {
13 ; CHECK-LABEL: setccat:
15 ; CHECK-NEXT: or %s0, 1, (0)1
16 ; CHECK-NEXT: b.l.t (, %s10)
17 %3 = fcmp true float %0, %1
21 define zeroext i1 @setccoeq(float, float) {
22 ; CHECK-LABEL: setccoeq:
24 ; CHECK-NEXT: fcmp.s %s0, %s0, %s1
25 ; CHECK-NEXT: or %s1, 0, (0)1
26 ; CHECK-NEXT: cmov.s.eq %s1, (63)0, %s0
27 ; CHECK-NEXT: adds.w.zx %s0, %s1, (0)1
28 ; CHECK-NEXT: b.l.t (, %s10)
29 %3 = fcmp oeq float %0, %1
33 define zeroext i1 @setccone(float, float) {
34 ; CHECK-LABEL: setccone:
36 ; CHECK-NEXT: fcmp.s %s0, %s0, %s1
37 ; CHECK-NEXT: or %s1, 0, (0)1
38 ; CHECK-NEXT: cmov.s.ne %s1, (63)0, %s0
39 ; CHECK-NEXT: adds.w.zx %s0, %s1, (0)1
40 ; CHECK-NEXT: b.l.t (, %s10)
41 %3 = fcmp one float %0, %1
45 define zeroext i1 @setccogt(float, float) {
46 ; CHECK-LABEL: setccogt:
48 ; CHECK-NEXT: fcmp.s %s0, %s0, %s1
49 ; CHECK-NEXT: or %s1, 0, (0)1
50 ; CHECK-NEXT: cmov.s.gt %s1, (63)0, %s0
51 ; CHECK-NEXT: adds.w.zx %s0, %s1, (0)1
52 ; CHECK-NEXT: b.l.t (, %s10)
53 %3 = fcmp ogt float %0, %1
57 define zeroext i1 @setccoge(float, float) {
58 ; CHECK-LABEL: setccoge:
60 ; CHECK-NEXT: fcmp.s %s0, %s0, %s1
61 ; CHECK-NEXT: or %s1, 0, (0)1
62 ; CHECK-NEXT: cmov.s.ge %s1, (63)0, %s0
63 ; CHECK-NEXT: adds.w.zx %s0, %s1, (0)1
64 ; CHECK-NEXT: b.l.t (, %s10)
65 %3 = fcmp oge float %0, %1
69 define zeroext i1 @setccolt(float, float) {
70 ; CHECK-LABEL: setccolt:
72 ; CHECK-NEXT: fcmp.s %s0, %s0, %s1
73 ; CHECK-NEXT: or %s1, 0, (0)1
74 ; CHECK-NEXT: cmov.s.lt %s1, (63)0, %s0
75 ; CHECK-NEXT: adds.w.zx %s0, %s1, (0)1
76 ; CHECK-NEXT: b.l.t (, %s10)
77 %3 = fcmp olt float %0, %1
81 define zeroext i1 @setccole(float, float) {
82 ; CHECK-LABEL: setccole:
84 ; CHECK-NEXT: fcmp.s %s0, %s0, %s1
85 ; CHECK-NEXT: or %s1, 0, (0)1
86 ; CHECK-NEXT: cmov.s.le %s1, (63)0, %s0
87 ; CHECK-NEXT: adds.w.zx %s0, %s1, (0)1
88 ; CHECK-NEXT: b.l.t (, %s10)
89 %3 = fcmp ole float %0, %1
93 define zeroext i1 @setccord(float, float) {
94 ; CHECK-LABEL: setccord:
96 ; CHECK-NEXT: fcmp.s %s0, %s0, %s1
97 ; CHECK-NEXT: or %s1, 0, (0)1
98 ; CHECK-NEXT: cmov.s.num %s1, (63)0, %s0
99 ; CHECK-NEXT: adds.w.zx %s0, %s1, (0)1
100 ; CHECK-NEXT: b.l.t (, %s10)
101 %3 = fcmp ord float %0, %1
105 define zeroext i1 @setccuno(float, float) {
106 ; CHECK-LABEL: setccuno:
108 ; CHECK-NEXT: fcmp.s %s0, %s0, %s1
109 ; CHECK-NEXT: or %s1, 0, (0)1
110 ; CHECK-NEXT: cmov.s.nan %s1, (63)0, %s0
111 ; CHECK-NEXT: adds.w.zx %s0, %s1, (0)1
112 ; CHECK-NEXT: b.l.t (, %s10)
113 %3 = fcmp uno float %0, %1
117 define zeroext i1 @setccueq(float, float) {
118 ; CHECK-LABEL: setccueq:
120 ; CHECK-NEXT: fcmp.s %s0, %s0, %s1
121 ; CHECK-NEXT: or %s1, 0, (0)1
122 ; CHECK-NEXT: cmov.s.eqnan %s1, (63)0, %s0
123 ; CHECK-NEXT: adds.w.zx %s0, %s1, (0)1
124 ; CHECK-NEXT: b.l.t (, %s10)
125 %3 = fcmp ueq float %0, %1
129 define zeroext i1 @setccune(float, float) {
130 ; CHECK-LABEL: setccune:
132 ; CHECK-NEXT: fcmp.s %s0, %s0, %s1
133 ; CHECK-NEXT: or %s1, 0, (0)1
134 ; CHECK-NEXT: cmov.s.nenan %s1, (63)0, %s0
135 ; CHECK-NEXT: adds.w.zx %s0, %s1, (0)1
136 ; CHECK-NEXT: b.l.t (, %s10)
137 %3 = fcmp une float %0, %1
141 define zeroext i1 @setccugt(float, float) {
142 ; CHECK-LABEL: setccugt:
144 ; CHECK-NEXT: fcmp.s %s0, %s0, %s1
145 ; CHECK-NEXT: or %s1, 0, (0)1
146 ; CHECK-NEXT: cmov.s.gtnan %s1, (63)0, %s0
147 ; CHECK-NEXT: adds.w.zx %s0, %s1, (0)1
148 ; CHECK-NEXT: b.l.t (, %s10)
149 %3 = fcmp ugt float %0, %1
153 define zeroext i1 @setccuge(float, float) {
154 ; CHECK-LABEL: setccuge:
156 ; CHECK-NEXT: fcmp.s %s0, %s0, %s1
157 ; CHECK-NEXT: or %s1, 0, (0)1
158 ; CHECK-NEXT: cmov.s.genan %s1, (63)0, %s0
159 ; CHECK-NEXT: adds.w.zx %s0, %s1, (0)1
160 ; CHECK-NEXT: b.l.t (, %s10)
161 %3 = fcmp uge float %0, %1
165 define zeroext i1 @setccult(float, float) {
166 ; CHECK-LABEL: setccult:
168 ; CHECK-NEXT: fcmp.s %s0, %s0, %s1
169 ; CHECK-NEXT: or %s1, 0, (0)1
170 ; CHECK-NEXT: cmov.s.ltnan %s1, (63)0, %s0
171 ; CHECK-NEXT: adds.w.zx %s0, %s1, (0)1
172 ; CHECK-NEXT: b.l.t (, %s10)
173 %3 = fcmp ult float %0, %1
177 define zeroext i1 @setccule(float, float) {
178 ; CHECK-LABEL: setccule:
180 ; CHECK-NEXT: fcmp.s %s0, %s0, %s1
181 ; CHECK-NEXT: or %s1, 0, (0)1
182 ; CHECK-NEXT: cmov.s.lenan %s1, (63)0, %s0
183 ; CHECK-NEXT: adds.w.zx %s0, %s1, (0)1
184 ; CHECK-NEXT: b.l.t (, %s10)
185 %3 = fcmp ule float %0, %1