• Home
  • Raw
  • Download

Lines Matching refs:half

4 ; TODO: we can't pass half-precision arguments as "half" types yet. We do
7 ; is the shortest way to get a half type. But when we can pass half types, we
10 define half @fp16_vminnm_o(i16 signext %a, i16 signext %b) {
16 %0 = bitcast i16 %a to half
17 %1 = bitcast i16 %b to half
18 %cmp = fcmp fast olt half %0, %1
19 %cond = select i1 %cmp, half %0, half %1
20 ret half %cond
23 define half @fp16_vminnm_o_rev(i16 signext %a, i16 signext %b) {
29 %0 = bitcast i16 %a to half
30 %1 = bitcast i16 %b to half
31 %cmp = fcmp fast ogt half %0, %1
32 %cond = select i1 %cmp, half %1, half %0
33 ret half %cond
36 define half @fp16_vminnm_u(i16 signext %a, i16 signext %b) {
42 %0 = bitcast i16 %a to half
43 %1 = bitcast i16 %b to half
44 %cmp = fcmp fast ult half %0, %1
45 %cond = select i1 %cmp, half %0, half %1
46 ret half %cond
49 define half @fp16_vminnm_ule(i16 signext %a, i16 signext %b) {
55 %0 = bitcast i16 %a to half
56 %1 = bitcast i16 %b to half
57 %cmp = fcmp fast ule half %0, %1
58 %cond = select i1 %cmp, half %0, half %1
59 ret half %cond
62 define half @fp16_vminnm_u_rev(i16 signext %a, i16 signext %b) {
68 %0 = bitcast i16 %a to half
69 %1 = bitcast i16 %b to half
70 %cmp = fcmp fast ugt half %0, %1
71 %cond = select i1 %cmp, half %1, half %0
72 ret half %cond
75 define half @fp16_vmaxnm_o(i16 signext %a, i16 signext %b) {
81 %0 = bitcast i16 %a to half
82 %1 = bitcast i16 %b to half
83 %cmp = fcmp fast ogt half %0, %1
84 %cond = select i1 %cmp, half %0, half %1
85 ret half %cond
88 define half @fp16_vmaxnm_oge(i16 signext %a, i16 signext %b) {
94 %0 = bitcast i16 %a to half
95 %1 = bitcast i16 %b to half
96 %cmp = fcmp fast oge half %0, %1
97 %cond = select i1 %cmp, half %0, half %1
98 ret half %cond
101 define half @fp16_vmaxnm_o_rev(i16 signext %a, i16 signext %b) {
107 %0 = bitcast i16 %a to half
108 %1 = bitcast i16 %b to half
109 %cmp = fcmp fast olt half %0, %1
110 %cond = select i1 %cmp, half %1, half %0
111 ret half %cond
114 define half @fp16_vmaxnm_ole_rev(i16 signext %a, i16 signext %b) {
120 %0 = bitcast i16 %a to half
121 %1 = bitcast i16 %b to half
122 %cmp = fcmp fast ole half %0, %1
123 %cond = select i1 %cmp, half %1, half %0
124 ret half %cond
127 define half @fp16_vmaxnm_u(i16 signext %a, i16 signext %b) {
133 %0 = bitcast i16 %a to half
134 %1 = bitcast i16 %b to half
135 %cmp = fcmp fast ugt half %0, %1
136 %cond = select i1 %cmp, half %0, half %1
137 ret half %cond
140 define half @fp16_vmaxnm_uge(i16 signext %a, i16 signext %b) {
146 %0 = bitcast i16 %a to half
147 %1 = bitcast i16 %b to half
148 %cmp = fcmp fast uge half %0, %1
149 %cond = select i1 %cmp, half %0, half %1
150 ret half %cond
153 define half @fp16_vmaxnm_u_rev(i16 signext %a, i16 signext %b) {
159 %0 = bitcast i16 %a to half
160 %1 = bitcast i16 %b to half
161 %cmp = fcmp fast ult half %0, %1
162 %cond = select i1 %cmp, half %1, half %0
163 ret half %cond
168 define half @fp16_vminnm_NNNo(i16 signext %a) {
176 %0 = bitcast i16 %a to half
177 %cmp1 = fcmp fast olt half %0, 12.
178 %cond1 = select i1 %cmp1, half %0, half 12.
179 %cmp2 = fcmp fast olt half 34., %cond1
180 %cond2 = select i1 %cmp2, half 34., half %cond1
181 ret half %cond2
184 define half @fp16_vminnm_NNNo_rev(i16 signext %a) {
192 %0 = bitcast i16 %a to half
193 %cmp1 = fcmp fast ogt half %0, 56.
194 %cond1 = select i1 %cmp1, half 56., half %0
195 %cmp2 = fcmp fast ogt half 78., %cond1
196 %cond2 = select i1 %cmp2, half %cond1, half 78.
197 ret half %cond2
200 define half @fp16_vminnm_NNNu(i16 signext %b) {
208 %0 = bitcast i16 %b to half
209 %cmp1 = fcmp fast ult half 12., %0
210 %cond1 = select i1 %cmp1, half 12., half %0
211 %cmp2 = fcmp fast ult half %cond1, 34.
212 %cond2 = select i1 %cmp2, half %cond1, half 34.
213 ret half %cond2
216 define half @fp16_vminnm_NNNule(i16 signext %b) {
224 %0 = bitcast i16 %b to half
225 %cmp1 = fcmp fast ule half 34., %0
226 %cond1 = select i1 %cmp1, half 34., half %0
227 %cmp2 = fcmp fast ule half %cond1, 56.
228 %cond2 = select i1 %cmp2, half %cond1, half 56.
229 ret half %cond2
232 define half @fp16_vminnm_NNNu_rev(i16 signext %b) {
240 %0 = bitcast i16 %b to half
241 %cmp1 = fcmp fast ugt half 56., %0
242 %cond1 = select i1 %cmp1, half %0, half 56.
243 %cmp2 = fcmp fast ugt half %cond1, 78.
244 %cond2 = select i1 %cmp2, half 78., half %cond1
245 ret half %cond2
248 define half @fp16_vmaxnm_NNNo(i16 signext %a) {
256 %0 = bitcast i16 %a to half
257 %cmp1 = fcmp fast ogt half %0, 12.
258 %cond1 = select i1 %cmp1, half %0, half 12.
259 %cmp2 = fcmp fast ogt half 34., %cond1
260 %cond2 = select i1 %cmp2, half 34., half %cond1
261 ret half %cond2
264 define half @fp16_vmaxnm_NNNoge(i16 signext %a) {
272 %0 = bitcast i16 %a to half
273 %cmp1 = fcmp fast oge half %0, 34.
274 %cond1 = select i1 %cmp1, half %0, half 34.
275 %cmp2 = fcmp fast oge half 56., %cond1
276 %cond2 = select i1 %cmp2, half 56., half %cond1
277 ret half %cond2
280 define half @fp16_vmaxnm_NNNo_rev(i16 signext %a) {
288 %0 = bitcast i16 %a to half
289 %cmp1 = fcmp fast olt half %0, 56.
290 %cond1 = select i1 %cmp1, half 56., half %0
291 %cmp2 = fcmp fast olt half 78., %cond1
292 %cond2 = select i1 %cmp2, half %cond1, half 78.
293 ret half %cond2
296 define half @fp16_vmaxnm_NNNole_rev(i16 signext %a) {
304 %0 = bitcast i16 %a to half
305 %cmp1 = fcmp fast ole half %0, 78.
306 %cond1 = select i1 %cmp1, half 78., half %0
307 %cmp2 = fcmp fast ole half 90., %cond1
308 %cond2 = select i1 %cmp2, half %cond1, half 90.
309 ret half %cond2
312 define half @fp16_vmaxnm_NNNu(i16 signext %b) {
320 %0 = bitcast i16 %b to half
321 %cmp1 = fcmp fast ugt half 12., %0
322 %cond1 = select i1 %cmp1, half 12., half %0
323 %cmp2 = fcmp fast ugt half %cond1, 34.
324 %cond2 = select i1 %cmp2, half %cond1, half 34.
325 ret half %cond2
328 define half @fp16_vmaxnm_NNNuge(i16 signext %b) {
336 %0 = bitcast i16 %b to half
337 %cmp1 = fcmp fast uge half 34., %0
338 %cond1 = select i1 %cmp1, half 34., half %0
339 %cmp2 = fcmp fast uge half %cond1, 56.
340 %cond2 = select i1 %cmp2, half %cond1, half 56.
341 ret half %cond2
344 define half @fp16_vmaxnm_NNNu_rev(i16 signext %b) {
352 %0 = bitcast i16 %b to half
353 %cmp1 = fcmp fast ult half 56., %0
354 %cond1 = select i1 %cmp1, half %0, half 56.
355 %cmp2 = fcmp fast ult half %cond1, 78.
356 %cond2 = select i1 %cmp2, half 78., half %cond1
357 ret half %cond2
360 define half @fp16_vminmaxnm_0(i16 signext %a) {
367 %0 = bitcast i16 %a to half
368 %cmp1 = fcmp fast olt half %0, 0.
369 %cond1 = select i1 %cmp1, half %0, half 0.
370 %cmp2 = fcmp fast ogt half %cond1, 0.
371 %cond2 = select i1 %cmp2, half %cond1, half 0.
372 ret half %cond2
375 define half @fp16_vminmaxnm_neg0(i16 signext %a) {
382 %0 = bitcast i16 %a to half
383 %cmp1 = fcmp fast olt half %0, -0.
384 %cond1 = select i1 %cmp1, half %0, half -0.
385 %cmp2 = fcmp fast ugt half %cond1, -0.
386 %cond2 = select i1 %cmp2, half %cond1, half -0.
387 ret half %cond2
390 define half @fp16_vminmaxnm_e_0(i16 signext %a) {
397 %0 = bitcast i16 %a to half
398 %cmp1 = fcmp fast ule half 0., %0
399 %cond1 = select i1 %cmp1, half 0., half %0
400 %cmp2 = fcmp fast uge half 0., %cond1
401 %cond2 = select i1 %cmp2, half 0., half %cond1
402 ret half %cond2
405 define half @fp16_vminmaxnm_e_neg0(i16 signext %a) {
412 %0 = bitcast i16 %a to half
413 %cmp1 = fcmp fast ule half -0., %0
414 %cond1 = select i1 %cmp1, half -0., half %0
415 %cmp2 = fcmp fast oge half -0., %cond1
416 %cond2 = select i1 %cmp2, half -0., half %cond1
417 ret half %cond2