aboutsummaryrefslogtreecommitdiff
path: root/deps/lightning/check/branch.tst
blob: 2252dff50f903a77433447b30ff78049d3924ff3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
#if __WORDSIZE == 64
#  define I7f		0x7fffffffffffffff
#  define I80		0x8000000000000000
#  define I81		0x8000000000000001
#  define Iff		0xffffffffffffffff
#else
#  define I7f		0x7fffffff
#  define I80		0x80000000
#  define I81		0x80000001
#  define Iff		0xffffffff
#endif

.data	12
ok:
.c	"ok\n"
.	$($NaN  =  0.0 / 0.0)

#define BOP(N, Ls, Rs, Lu, Ru, R0, R1)		\
	movi %R0 Ls				\
	movi %R1 Rs				\
	b##N##r N##r_##R0##_##R1 %R0 %R1	\
	calli @abort				\
N##r_##R0##_##R1:				\
	b##N##i N##i_##R0##_##R1 %R0 Rs		\
	calli @abort				\
N##i_##R0##_##R1:				\
	movi %R0 Lu				\
	movi %R1 Ru				\
	b##N##r_u N##r_u_##R0##_##R1 %R0 %R1	\
	calli @abort				\
N##r_u_##R0##_##R1:				\
	b##N##i_u N##i_u_##R0##_##R1 %R0 Ru	\
	calli @abort				\
N##i_u_##R0##_##R1:				\
	movi %R0 Ls				\
	movi %R1 Rs				\
	N##r %R0 %R0 %R1			\
	beqi _##N##r_##R0##_##R1 %R0 1		\
	calli @abort				\
_##N##r_##R0##_##R1:				\
	movi %R0 Ls				\
	N##i %R1 %R0 Rs				\
	beqi _##N##i_##R0##_##R1 %R1 1		\
	calli @abort				\
_##N##i_##R0##_##R1:				\
	movi %R0 Lu				\
	movi %R1 Ru				\
	N##r_u %R0 %R0 %R1			\
	beqi _##N##r_u_##R0##_##R1 %R0 1	\
	calli @abort				\
_##N##r_u_##R0##_##R1:				\
	movi %R0 Lu				\
	N##i_u %R1 %R0 Ru			\
	beqi _##N##i_u_##R0##_##R1 %R1 1	\
	calli @abort				\
_##N##i_u_##R0##_##R1:

#define EB(N, L, R, R0, R1)			\
	movi %R0 L				\
	movi %R1 R				\
	b##N##r N##r_##R0##_##R1 %R0 %R1	\
	calli @abort				\
N##r_##R0##_##R1:				\
	b##N##i N##i_##R0##_##R1 %R0 R		\
	calli @abort				\
N##i_##R0##_##R1:				\
	movi %R0 L				\
	movi %R1 R				\
	N##r %R0 %R0 %R1			\
	beqi _##N##r_##R0##_##R1 %R0 1		\
	calli @abort				\
_##N##r_##R0##_##R1:				\
	movi %R0 L				\
	N##i %R1 %R0 R				\
	beqi _##N##i_##R0##_##R1 %R1 1		\
	calli @abort				\
_##N##i_##R0##_##R1:

#define XEB(N, L, R, R0, R1)			\
	movi %R0 L				\
	movi %R1 R				\
	b##N##r N##r_##R0##_##R1 %R0 %R1	\
	calli @abort				\
N##r_##R0##_##R1:				\
	b##N##i N##i_##R0##_##R1 %R0 R		\
	calli @abort				\
N##i_##R0##_##R1:

#define XBOP(N, Ls, Rs, Lu, Ru, R0, R1)		\
	movi %R0 Ls				\
	movi %R1 Rs				\
	b##N##r N##r_##R0##_##R1 %R0 %R1	\
	calli @abort				\
N##r_##R0##_##R1:				\
	movi %R0 Ls				\
	b##N##i N##i_##R0##_##R1 %R0 Rs		\
	calli @abort				\
N##i_##R0##_##R1:				\
	movi %R0 Lu				\
	movi %R1 Ru				\
	b##N##r_u N##r_u_##R0##_##R1 %R0 %R1	\
	calli @abort				\
N##r_u_##R0##_##R1:				\
	movi %R0 Lu				\
	b##N##i_u N##i_u_##R0##_##R1 %R0 Ru	\
	calli @abort				\
N##i_u_##R0##_##R1:

#define BOPI(N, Ls, Rs, Lu, Ru)			\
	BOP(N, Ls, Rs, Lu, Ru, v0, v1)		\
	BOP(N, Ls, Rs, Lu, Ru, v0, v2)		\
	BOP(N, Ls, Rs, Lu, Ru, v0, r0)		\
	BOP(N, Ls, Rs, Lu, Ru, v0, r1)		\
	BOP(N, Ls, Rs, Lu, Ru, v0, r2)		\
	BOP(N, Ls, Rs, Lu, Ru, v1, v0)		\
	BOP(N, Ls, Rs, Lu, Ru, v1, v2)		\
	BOP(N, Ls, Rs, Lu, Ru, v1, r0)		\
	BOP(N, Ls, Rs, Lu, Ru, v1, r1)		\
	BOP(N, Ls, Rs, Lu, Ru, v1, r2)		\
	BOP(N, Ls, Rs, Lu, Ru, v2, v0)		\
	BOP(N, Ls, Rs, Lu, Ru, v2, v1)		\
	BOP(N, Ls, Rs, Lu, Ru, v2, r0)		\
	BOP(N, Ls, Rs, Lu, Ru, v2, r1)		\
	BOP(N, Ls, Rs, Lu, Ru, v2, r2)		\
	BOP(N, Ls, Rs, Lu, Ru, r0, v0)		\
	BOP(N, Ls, Rs, Lu, Ru, r0, v1)		\
	BOP(N, Ls, Rs, Lu, Ru, r0, v2)		\
	BOP(N, Ls, Rs, Lu, Ru, r0, r1)		\
	BOP(N, Ls, Rs, Lu, Ru, r0, r2)		\
	BOP(N, Ls, Rs, Lu, Ru, r1, v0)		\
	BOP(N, Ls, Rs, Lu, Ru, r1, v1)		\
	BOP(N, Ls, Rs, Lu, Ru, r1, v2)		\
	BOP(N, Ls, Rs, Lu, Ru, r1, r0)		\
	BOP(N, Ls, Rs, Lu, Ru, r1, r2)		\
	BOP(N, Ls, Rs, Lu, Ru, r2, v0)		\
	BOP(N, Ls, Rs, Lu, Ru, r2, v1)		\
	BOP(N, Ls, Rs, Lu, Ru, r2, v2)		\
	BOP(N, Ls, Rs, Lu, Ru, r2, r0)		\
	BOP(N, Ls, Rs, Lu, Ru, r2, r1)

#define EBI(N, L, R)				\
	EB(N, L, R, v0, v1)			\
	EB(N, L, R, v0, v2)			\
	EB(N, L, R, v0, r0)			\
	EB(N, L, R, v0, r1)			\
	EB(N, L, R, v0, r2)			\
	EB(N, L, R, v1, v0)			\
	EB(N, L, R, v1, v2)			\
	EB(N, L, R, v1, r0)			\
	EB(N, L, R, v1, r1)			\
	EB(N, L, R, v1, r2)			\
	EB(N, L, R, v2, v0)			\
	EB(N, L, R, v2, v1)			\
	EB(N, L, R, v2, r0)			\
	EB(N, L, R, v2, r1)			\
	EB(N, L, R, v2, r2)			\
	EB(N, L, R, r0, v0)			\
	EB(N, L, R, r0, v1)			\
	EB(N, L, R, r0, v2)			\
	EB(N, L, R, r0, r1)			\
	EB(N, L, R, r0, r2)			\
	EB(N, L, R, r1, v0)			\
	EB(N, L, R, r1, v1)			\
	EB(N, L, R, r1, v2)			\
	EB(N, L, R, r1, r0)			\
	EB(N, L, R, r1, r2)			\
	EB(N, L, R, r2, v0)			\
	EB(N, L, R, r2, v1)			\
	EB(N, L, R, r2, v2)			\
	EB(N, L, R, r2, r0)			\
	EB(N, L, R, r2, r1)


#define XEBI(N, L, R)				\
	XEB(N, L, R, v0, v1)			\
	XEB(N, L, R, v0, v2)			\
	XEB(N, L, R, v0, r0)			\
	XEB(N, L, R, v0, r1)			\
	XEB(N, L, R, v0, r2)			\
	XEB(N, L, R, v1, v0)			\
	XEB(N, L, R, v1, v2)			\
	XEB(N, L, R, v1, r0)			\
	XEB(N, L, R, v1, r1)			\
	XEB(N, L, R, v1, r2)			\
	XEB(N, L, R, v2, v0)			\
	XEB(N, L, R, v2, v1)			\
	XEB(N, L, R, v2, r0)			\
	XEB(N, L, R, v2, r1)			\
	XEB(N, L, R, v2, r2)			\
	XEB(N, L, R, r0, v0)			\
	XEB(N, L, R, r0, v1)			\
	XEB(N, L, R, r0, v2)			\
	XEB(N, L, R, r0, r1)			\
	XEB(N, L, R, r0, r2)			\
	XEB(N, L, R, r1, v0)			\
	XEB(N, L, R, r1, v1)			\
	XEB(N, L, R, r1, v2)			\
	XEB(N, L, R, r1, r0)			\
	XEB(N, L, R, r1, r2)			\
	XEB(N, L, R, r2, v0)			\
	XEB(N, L, R, r2, v1)			\
	XEB(N, L, R, r2, v2)			\
	XEB(N, L, R, r2, r0)			\
	XEB(N, L, R, r2, r1)

#define XBOPI(N, Ls, Rs, Lu, Ru)		\
	XBOP(N, Ls, Rs, Lu, Ru, v0, v1)		\
	XBOP(N, Ls, Rs, Lu, Ru, v0, v2)		\
	XBOP(N, Ls, Rs, Lu, Ru, v0, r0)		\
	XBOP(N, Ls, Rs, Lu, Ru, v0, r1)		\
	XBOP(N, Ls, Rs, Lu, Ru, v0, r2)		\
	XBOP(N, Ls, Rs, Lu, Ru, v1, v0)		\
	XBOP(N, Ls, Rs, Lu, Ru, v1, v2)		\
	XBOP(N, Ls, Rs, Lu, Ru, v1, r0)		\
	XBOP(N, Ls, Rs, Lu, Ru, v1, r1)		\
	XBOP(N, Ls, Rs, Lu, Ru, v1, r2)		\
	XBOP(N, Ls, Rs, Lu, Ru, v2, v0)		\
	XBOP(N, Ls, Rs, Lu, Ru, v2, v1)		\
	XBOP(N, Ls, Rs, Lu, Ru, v2, r0)		\
	XBOP(N, Ls, Rs, Lu, Ru, v2, r1)		\
	XBOP(N, Ls, Rs, Lu, Ru, v2, r2)		\
	XBOP(N, Ls, Rs, Lu, Ru, r0, v0)		\
	XBOP(N, Ls, Rs, Lu, Ru, r0, v1)		\
	XBOP(N, Ls, Rs, Lu, Ru, r0, v2)		\
	XBOP(N, Ls, Rs, Lu, Ru, r0, r1)		\
	XBOP(N, Ls, Rs, Lu, Ru, r0, r2)		\
	XBOP(N, Ls, Rs, Lu, Ru, r1, v0)		\
	XBOP(N, Ls, Rs, Lu, Ru, r1, v1)		\
	XBOP(N, Ls, Rs, Lu, Ru, r1, v2)		\
	XBOP(N, Ls, Rs, Lu, Ru, r1, r0)		\
	XBOP(N, Ls, Rs, Lu, Ru, r1, r2)		\
	XBOP(N, Ls, Rs, Lu, Ru, r2, v0)		\
	XBOP(N, Ls, Rs, Lu, Ru, r2, v1)		\
	XBOP(N, Ls, Rs, Lu, Ru, r2, v2)		\
	XBOP(N, Ls, Rs, Lu, Ru, r2, r0)		\
	XBOP(N, Ls, Rs, Lu, Ru, r2, r1)

#define TBOPF(N, T, L, R)			\
	movi_##T %f0 L				\
	movi_##T %f1 R				\
	b##N##r##_##T N##r_##T %f0 %f1		\
	calli @abort				\
N##r_##T:					\
	b##N##i##_##T N##i_##T %f0 R		\
	calli @abort				\
N##i_##T:					\
	movi_##T %f1 $NaN			\
	b##N##r##_##T N##r_##T##_##u %f0 %f1	\
	jmpi N##r_##T##_##u0			\
N##r_##T##_##u:					\
	calli @abort				\
N##r##_##T##_##u0:				\
	b##N##i##_##T N##i_##T##_##u %f0 $NaN	\
	jmpi N##i_##T##_##u0			\
N##i##_##T##_##u:				\
	calli @abort				\
N##i##_##T##_##u0:
#define BOPF(N, L, R)				\
	TBOPF(N, f, L, R)			\
	TBOPF(N, d, L, R)

#define TUBOPF(N, T, L, R)			\
	movi_##T %f0 L				\
	movi_##T %f1 R				\
	b##N##r##_##T N##r_##T %f0 %f1		\
	calli @abort				\
N##r_##T:					\
	b##N##i##_##T N##i_##T %f0 R		\
	calli @abort				\
N##i_##T:					\
	movi_##T %f1 $NaN			\
	b##N##r##_##T N##r_##T##_##u %f0 %f1	\
	calli @abort				\
N##r_##T##_##u:					\
	b##N##i##_##T N##i_##T##_##u %f0 $NaN	\
	calli @abort				\
N##i##_##T##_##u:

#define UBOPF(N, L, R)				\
	TUBOPF(N, f, L, R)			\
	TUBOPF(N, d, L, R)

.code
	prolog

	movi %r0 -1
	movi %r1 1
	bltr xltr_r0_r1 %r0 %r1
	calli @abort
xltr_r0_r1:
	blti xlti_r0_r1 %r0 1
	calli @abort
xlti_r0_r1:
	movi %r0 1
	movi %r1 -1
	bltr_u xltru_r0_r1 %r0 %r1
	calli @abort
xltru_r0_r1:
	blti_u xltiu_r0_r1 %r0 -1
	calli @abort
xltiu_r0_r1:
	movi %r0 -1
	movi %r1 -1
	bler xler_r0_r1 %r0 %r1
	calli @abort
xler_r0_r1:
	blti xlei_r0_r1 %r0 1
	calli @abort
xlei_r0_r1:
	movi %r0 1
	movi %r1 -1
	bltr_u xlteu_r0_r1 %r0 %r1
	calli @abort
xlteu_r0_r1:
	blei_u xleiu_r0_r1 %r0 -1
	calli @abort
xleiu_r0_r1:
	movi %r0 32
	movi %r1 32
	beqr xeqr_r0_r1 %r0 %r1
	calli @abort
xeqr_r0_r1:
	beqi xeqi_r0_r1 %r0 32
	calli @abort
xeqi_r0_r1:
	movi %r0 -2
	movi %r1 -2
	bger xger_r0_r1 %r0 %r1
	calli @abort
xger_r0_r1:
	bgei xgei_r0_r1 %r0 -2
	calli @abort
xgei_r0_r1:
	movi %r0 2
	movi %r1 2
	bger_u xgeru_r0_r1 %r0 %r1
	calli @abort
xgeru_r0_r1:
	bgei_u xgeiu_r0_r1 %r0 2
	calli @abort
xgeiu_r0_r1:
	movi %r0 2
	movi %r1 -2
	bgtr xgtr_r0_r1 %r0 %r1
	calli @abort
xgtr_r0_r1:
	bgti xgti_r0_r1 %r0 -2
	calli @abort
xgti_r0_r1:
	movi %r0 -2
	movi %r1 2
	bgtr_u xgtru_r0_r1 %r0 %r1
	calli @abort
xgtru_r0_r1:
	bgti_u xgtiu_r0_r1 %r0 2
	calli @abort
xgtiu_r0_r1:
	movi %r0 -3
	movi %r1 3
	bner xner_r0_r1 %r0 %r1
	calli @abort
xner_r0_r1:
	bnei xnei_r0_r1 %r0 3
	calli @abort
xnei_r0_r1:
	movi %r0 1
	movi %r1 3
	bmsr xmsr_r0_r1 %r0 %r1
	calli @abort
xmsr_r0_r1:
	bmsi xmsi_r0_r1 %r0 3
	calli @abort
xmsi_r0_r1:
	movi %r0 1
	movi %r1 2
	bmcr xmcr_r0_r1 %r0 %r1
	calli @abort
xmcr_r0_r1:
	bmci xmci_r0_r1 %r0 2
	calli @abort
xmci_r0_r1:
	movi %r0 I7f
	movi %r1 1
	boaddr xoaddr_r0_r1 %r0 %r1
	calli @abort
xoaddr_r0_r1:
	movi %r0 Iff
	movi %r1 1
	boaddr_u xoaddr_u_r0_r1 %r0 %r1
	calli @abort
xoaddr_u_r0_r1:
	movi %r0 I7f
	boaddi xoaddi_r0_r1 %r0 1
	calli @abort
xoaddi_r0_r1:
	movi %r0 Iff
	boaddi_u xoaddi_u_r0_r1 %r0 1
	calli @abort
xoaddi_u_r0_r1:
	movi %r0 I80
	movi %r1 1
	bxaddr xxaddr_r0_r1 %r0 %r1
	calli @abort
xxaddr_r0_r1:
	movi %r0 I80
	bxaddi xxaddi_r0_r1 %r0 1
	calli @abort
xxaddi_r0_r1:
	movi %r0 I7f
	movi %r1 1
	bxaddr_u xxaddr_u_r0_r1 %r0 %r1
	calli @abort
xxaddr_u_r0_r1:
	movi %r0 I7f
	bxaddi_u xxaddi_u_r0_r1 %r0 1
	calli @abort
xxaddi_u_r0_r1:
	movi %r0 I80
	movi %r1 1
	bosubr xosubr_r0_r1 %r0 %r1
	calli @abort
xosubr_r0_r1:
	movi %r0 0
	movi %r1 1
	bosubr_u xosubr_u_r0_r1 %r0 %r1
	calli @abort
xosubr_u_r0_r1:
	movi %r0 I80
	bosubi xosubi_r0_r1 %r0 1
	calli @abort
xosubi_r0_r1:
	movi %r0 0
	bosubi_u xosubi_u_r0_r1 %r0 1
	calli @abort
xosubi_u_r0_r1:
	movi %r0 I81
	movi %r1 1
	bxsubr xxsubr_r0_r1 %r0 %r1
	calli @abort
xxsubr_r0_r1:
	movi %r0 I81
	bxsubi xxsubi_r0_r1 %r0 1
	calli @abort
xxsubi_r0_r1:
	movi %r0 I80
	movi %r1 1
	bxsubr_u xxsubr_u_r0_r1 %r0 %r1
	calli @abort
xxsubr_u_r0_r1:
	movi %r0 I80
	bxsubi_u xxsubi_u_r0_r1 %r0 1
	calli @abort
xxsubi_u_r0_r1:
	movi_f %f0 1
	movi_f %f1 2
	bltr_f xltr_f_f0_f1 %f0 %f1
	calli @abort
xltr_f_f0_f1:
	blti_f xlti_f_f0_f1 %f0 2
	calli @abort
xlti_f_f0_f1:
	movi_f %f0 -1
	movi_f %f1 -1
	bler_f xler_f_f0_f1 %f0 %f1
	calli @abort
xler_f_f0_f1:
	blei_f xlei_f_f0_f1 %f0 -1
	calli @abort
xlei_f_f0_f1:
	movi_f %f0 -2
	movi_f %f1 -2
	beqr_f xeqr_f_f0_f1 %f0 %f1
	calli @abort
xeqr_f_f0_f1:
	beqi_f xeqi_f_f0_f1 %f0 -2
	calli @abort
xeqi_f_f0_f1:
	movi_f %f0 -3
	movi_f %f1 -3
	bger_f xger_f_f0_f1 %f0 %f1
	calli @abort
xger_f_f0_f1:
	bgei_f xgei_f_f0_f1 %f0 -3
	calli @abort
xgei_f_f0_f1:
	movi_f %f0 2
	movi_f %f1 1
	bgtr_f xgtr_f_f0_f1 %f0 %f1
	calli @abort
xgtr_f_f0_f1:
	bgti_f xgti_f_f0_f1 %f0 1
	calli @abort
xgti_f_f0_f1:
	movi_f %f0 0
	movi_f %f1 2
	bner_f xner_f_f0_f1 %f0 %f1
	calli @abort
xner_f_f0_f1:
	bnei_f xnei_f_f0_f1 %f0 2
	calli @abort
xnei_f_f0_f1:

	BOPI(lt, -1, 1, 1, -1)
	BOPI(le, -1, -1, 1, 1)
	EBI(eq, 32, 32)
	BOPI(ge, -2, -2, 2, 2)
	BOPI(gt, 2, -2, -2, 2)
	EBI(ne, 3, -3)
	XEBI(ms, 1, 3)
	XEBI(mc, 1, 2)
	XBOPI(oadd, I7f, 1, Iff, 1)
	XBOPI(xadd, I80, 1, I7f, 1)
	XBOPI(osub, I80, 1, 0, 1)
	XBOPI(xsub, I81, 1, I80, 1)
	BOPF(lt, 1, 2)
	BOPF(le, 2, 2)
	BOPF(eq, 3, 3)
	BOPF(ge, 3, 3)
	BOPF(gt, 4, 3)
	UBOPF(ne, 4, 3)
	UBOPF(unlt, 1, 2)
	UBOPF(unle, 2, 2)
	UBOPF(uneq, 3, 3)
	UBOPF(unge, 3, 3)
	UBOPF(ungt, 4, 3)
	BOPF(ltgt, 4, 3)
	movi_f %f0 5
	movi_f %f1 5
	bordr_f ordr_f %f0 %f1
	calli @abort
ordr_f:
	bordi_f ordi_f %f0 1
	calli @abort
ordi_f:
	bordi_f ordi_f_u %f0 $NaN
	jmpi ordi_f_u0
ordi_f_u:
	calli @abort
ordi_f_u0:
	movi_f %f0 5
	movi_f %f1 5
	bunordr_f unordr_f %f0 %f1
	jmpi unordr_f_0
unordr_f:
	calli @abort
unordr_f_0:
	bunordi_f unordi_f %f0 1
	jmpi unordi_f_0
unordi_f:
	calli @abort
unordi_f_0:
	bunordi_f unordi_f_1 %f0 $NaN
	calli @abort
unordi_f_1:

	// just to know did not crash or abort
	prepare
		pushargi ok
		ellipsis
	finishi @printf

	ret
	epilog