onlineasm 0.4.6

Minimal portable runtime assembler with offlineasm mnemonics
Documentation
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
use crate::{Assembler, IntoOperand, Op};
use smallvec::SmallVec;

macro_rules! mnemonic_methods {
    // The doc for one typed method is an `Emit` line plus the mnemonic's
    // reference entry, rendered by the build script into
    // `OUT_DIR/method-docs/<mnemonic>.md`. The empty doc between them keeps
    // the two as separate paragraphs.
    (@fixed $name:ident, $mn:literal) => {
        #[doc = concat!("Emit `", $mn, "`.")]
        #[doc = ""]
        #[doc = include_str!(concat!(env!("OUT_DIR"), "/method-docs/", $mn, ".md"))]
        pub fn $name(&mut self) -> &mut Self {
            self.emit_checked(crate::mnem::$name, &[]);
            self
        }
    };
    (@fixed $name:ident, $mn:literal, $($arg:ident),+) => {
        #[doc = concat!("Emit `", $mn, "` (widest operand form).")]
        #[doc = ""]
        #[doc = include_str!(concat!(env!("OUT_DIR"), "/method-docs/", $mn, ".md"))]
        pub fn $name(&mut self, $($arg: impl IntoOperand),+) -> &mut Self {
            let ops = [$(self.op($arg)),+];
            self.emit_checked(crate::mnem::$name, &ops);
            self
        }
    };
    ($(@fixed $name:ident, $mn:literal $(, $arg:ident)*;)*
     $(@variadic $vname:ident, $vmn:literal;)*) => {
        #[allow(non_snake_case)]
        impl<const BACKWARD: bool> Assembler<BACKWARD> {
            $( mnemonic_methods!(@fixed $name, $mn $(, $arg)*); )*

            $(#[doc = concat!("Emit `", $vmn, "` with a variable number of operands.")]
            #[doc = ""]
            #[doc = include_str!(concat!(env!("OUT_DIR"), "/method-docs/", $vmn, ".md"))]
            pub fn $vname(&mut self, ops: &[impl IntoOperand + Copy]) -> &mut Self {
                let resolved: SmallVec<[Op; 4]> =
                    ops.iter().map(|o| o.into_operand(self)).collect();
                self.emit_checked(crate::mnem::$vname, &resolved);
                self
            })*
        }


    };
}

mnemonic_methods! {
    @fixed addi, "addi", dst, a, b;
    @fixed addp, "addp", dst, a, b;
    @fixed addq, "addq", dst, a, b;
    @fixed andi, "andi", dst, a, b;
    @fixed andp, "andp", dst, a, b;
    @fixed andq, "andq", dst, a, b;
    @fixed andf, "andf", dst, a, b;
    @fixed andd, "andd", dst, a, b;
    @fixed lshifti, "lshifti", dst, a;
    @fixed lshiftp, "lshiftp", dst, a;
    @fixed lshiftq, "lshiftq", dst, a;
    @fixed muli, "muli", dst, a, b;
    @fixed mulp, "mulp", dst, a, b;
    @fixed mulq, "mulq", dst, a, b;
    @fixed negi, "negi", dst;
    @fixed negp, "negp", dst;
    @fixed negq, "negq", dst;
    @fixed noti, "noti", dst;
    @fixed notq, "notq", dst;
    @fixed ori, "ori", dst, a, b;
    @fixed orp, "orp", dst, a, b;
    @fixed orq, "orq", dst, a, b;
    @fixed orh, "orh", dst, a, b;
    @fixed orf, "orf", dst, a, b;
    @fixed ord, "ord", dst, a, b;
    @fixed rshifti, "rshifti", dst, a;
    @fixed rshiftp, "rshiftp", dst, a;
    @fixed rshiftq, "rshiftq", dst, a;
    @fixed urshifti, "urshifti", dst, a;
    @fixed urshiftp, "urshiftp", dst, a;
    @fixed urshiftq, "urshiftq", dst, a;
    @fixed lrotatei, "lrotatei", dst, a;
    @fixed lrotateq, "lrotateq", dst, a;
    @fixed rrotatei, "rrotatei", dst, a;
    @fixed rrotateq, "rrotateq", dst, a;
    @fixed subi, "subi", dst, a, b;
    @fixed subp, "subp", dst, a, b;
    @fixed subq, "subq", dst, a, b;
    @fixed xori, "xori", dst, a, b;
    @fixed xorp, "xorp", dst, a, b;
    @fixed xorq, "xorq", dst, a, b;
    @fixed adcq, "adcq", dst, a;
    @fixed sbcq, "sbcq", dst, a;
    @fixed umulhq, "umulhq", dst;
    @fixed smulhq, "smulhq", dst;
    @fixed smulli, "smulli", dst, a, b;
    @fixed umulli, "umulli", dst, a, b;
    @fixed addqs, "addqs", dst, a, b;
    @fixed subqs, "subqs", dst, a, b;
    @fixed addlshiftp, "addlshiftp", dst, a, b, c;
    @fixed addis, "addis", dst, a, b, c;
    @fixed subis, "subis", dst, a, b, c;
    @fixed oris, "oris", dst, a, b, c;
    @fixed addps, "addps", dst, a, b, c;
    @fixed divi, "divi", dst, a, b;
    @fixed divis, "divis", dst, a, b;
    @fixed divq, "divq", dst, a, b;
    @fixed divqs, "divqs", dst, a, b;
    @fixed remi, "remi", dst, a, b;
    @fixed remis, "remis", dst, a, b;
    @fixed remq, "remq", dst, a, b;
    @fixed remqs, "remqs", dst, a, b;
    @fixed cdqi, "cdqi";
    @fixed cqoq, "cqoq";
    @fixed idivi, "idivi", dst;
    @fixed udivi, "udivi", dst;
    @fixed idivq, "idivq", dst;
    @fixed udivq, "udivq", dst;
    @fixed slt, "slt", dst, a, b;
    @fixed sltu, "sltu", dst, a, b;
    @fixed movz, "movz", dst, a, b;
    @fixed movn, "movn", dst, a, b;
    @fixed cmov, "cmov", dst, a, b;
    @fixed cmovz, "cmovz", dst, a, b;
    @fixed bfiq, "bfiq", dst, a, b, c;
    @fixed leai, "leai", dst, a;
    @fixed leap, "leap", dst, a;
    @fixed pcrtoaddr, "pcrtoaddr", dst, a;
    @fixed globaladdr, "globaladdr", dst, a;
    @fixed la, "la", dst, a;
    @fixed loadi, "loadi", dst, a;
    @fixed atomicloadi, "atomicloadi", dst, a;
    @fixed loadp, "loadp", dst, a;
    @fixed loadq, "loadq", dst, a;
    @fixed atomicloadq, "atomicloadq", dst, a;
    @fixed storei, "storei", dst, a;
    @fixed storep, "storep", dst, a;
    @fixed storeq, "storeq", dst, a;
    @fixed storeh, "storeh", dst, a;
    @fixed storeb, "storeb", dst, a;
    @fixed loadis, "loadis", dst, a;
    @fixed loadb, "loadb", dst, a;
    @fixed atomicloadb, "atomicloadb", dst, a;
    @fixed loadbsi, "loadbsi", dst, a;
    @fixed loadbsq, "loadbsq", dst, a;
    @fixed loadh, "loadh", dst, a;
    @fixed atomicloadh, "atomicloadh", dst, a;
    @fixed loadhsi, "loadhsi", dst, a;
    @fixed loadhsq, "loadhsq", dst, a;
    @fixed transferi, "transferi", dst, a;
    @fixed transferq, "transferq", dst, a;
    @fixed transferp, "transferp", dst, a;
    @fixed sxi2q, "sxi2q", dst, a;
    @fixed zxi2q, "zxi2q", dst, a;
    @fixed sxb2i, "sxb2i", dst, a;
    @fixed sxh2i, "sxh2i", dst, a;
    @fixed sxb2q, "sxb2q", dst, a;
    @fixed sxb2p, "sxb2p", dst, a;
    @fixed sxh2q, "sxh2q", dst, a;
    @fixed loadf, "loadf", dst, a;
    @fixed storef, "storef", dst, a;
    @fixed loadd, "loadd", dst, a;
    @fixed moved, "moved", dst, a;
    @fixed stored, "stored", dst, a;
    @fixed loadv, "loadv", dst, a;
    @fixed storev, "storev", dst, a;
    @fixed movev, "movev", dst, a;
    @fixed r#move, "move", a, b;
    @fixed peek, "peek", dst, a;
    @fixed poke, "poke", dst, a;
    @fixed loadqinc, "loadqinc", dst, a, b;
    @fixed loadpairq, "loadpairq", dst, a, b;
    @fixed loadpairp, "loadpairp", dst, a, b;
    @fixed loadpairi, "loadpairi", dst, a, b;
    @fixed loadpaird, "loadpaird", dst, a, b;
    @fixed loadpairv, "loadpairv", dst, a, b;
    @fixed storepairq, "storepairq", dst, a, b;
    @fixed storepairp, "storepairp", dst, a, b;
    @fixed storepairi, "storepairi", dst, a, b;
    @fixed storepaird, "storepaird", dst, a, b;
    @fixed storepairv, "storepairv", dst, a, b;
    @fixed addf, "addf", dst, a, b;
    @fixed addd, "addd", dst, a, b;
    @fixed divf, "divf", dst, a, b;
    @fixed divd, "divd", dst, a, b;
    @fixed subf, "subf", dst, a, b;
    @fixed subd, "subd", dst, a, b;
    @fixed mulf, "mulf", dst, a, b;
    @fixed muld, "muld", dst, a, b;
    @fixed sqrtf, "sqrtf", dst, a;
    @fixed sqrtd, "sqrtd", dst, a;
    @fixed roundf, "roundf", dst, a;
    @fixed floorf, "floorf", dst, a;
    @fixed ceilf, "ceilf", dst, a;
    @fixed truncatef, "truncatef", dst, a;
    @fixed roundd, "roundd", dst, a;
    @fixed floord, "floord", dst, a;
    @fixed ceild, "ceild", dst, a;
    @fixed truncated, "truncated", dst, a;
    @fixed truncatef2is, "truncatef2is", dst, a;
    @fixed truncated2is, "truncated2is", dst, a;
    @fixed truncatef2i, "truncatef2i", dst, a;
    @fixed truncatef2qs, "truncatef2qs", dst, a;
    @fixed truncated2i, "truncated2i", dst, a;
    @fixed truncated2qs, "truncated2qs", dst, a;
    @fixed truncatef2q, "truncatef2q", dst, a;
    @fixed truncated2q, "truncated2q", dst, a;
    @fixed ci2d, "ci2d", dst, a;
    @fixed ci2ds, "ci2ds", dst, a;
    @fixed ci2f, "ci2f", dst, a;
    @fixed cq2fs, "cq2fs", dst, a;
    @fixed ci2fs, "ci2fs", dst, a;
    @fixed cq2d, "cq2d", dst, a, b;
    @fixed cq2f, "cq2f", dst, a, b;
    @fixed cq2ds, "cq2ds", dst, a;
    @fixed cd2f, "cd2f", dst, a;
    @fixed cf2d, "cf2d", dst, a;
    @fixed fq2d, "fq2d", dst, a;
    @fixed fd2q, "fd2q", dst, a;
    @fixed fi2f, "fi2f", dst, a;
    @fixed ff2i, "ff2i", dst, a;
    @fixed btd2i, "btd2i", dst, a, b;
    @fixed td2i, "td2i", dst, a;
    @fixed bcd2i, "bcd2i", dst, a, b;
    @fixed movdz, "movdz", dst;
    @fixed absf, "absf", dst, a;
    @fixed absd, "absd", dst, a;
    @fixed negf, "negf", dst, a;
    @fixed negd, "negd", dst, a;
    @fixed umovb, "umovb", dst, a, b;
    @fixed umovh, "umovh", dst, a, b;
    @fixed umovi, "umovi", dst, a, b;
    @fixed umovq, "umovq", dst, a, b;
    @fixed bieq, "bieq", dst, a, b;
    @fixed bineq, "bineq", dst, a, b;
    @fixed bia, "bia", dst, a, b;
    @fixed biaeq, "biaeq", dst, a, b;
    @fixed bib, "bib", dst, a, b;
    @fixed bibeq, "bibeq", dst, a, b;
    @fixed bigt, "bigt", dst, a, b;
    @fixed bigteq, "bigteq", dst, a, b;
    @fixed bilt, "bilt", dst, a, b;
    @fixed bilteq, "bilteq", dst, a, b;
    @fixed bpeq, "bpeq", dst, a, b;
    @fixed bpneq, "bpneq", dst, a, b;
    @fixed bpa, "bpa", dst, a, b;
    @fixed bpaeq, "bpaeq", dst, a, b;
    @fixed bpb, "bpb", dst, a, b;
    @fixed bpbeq, "bpbeq", dst, a, b;
    @fixed bpgt, "bpgt", dst, a, b;
    @fixed bpgteq, "bpgteq", dst, a, b;
    @fixed bplt, "bplt", dst, a, b;
    @fixed bplteq, "bplteq", dst, a, b;
    @fixed bqeq, "bqeq", dst, a, b;
    @fixed bqneq, "bqneq", dst, a, b;
    @fixed bqa, "bqa", dst, a, b;
    @fixed bqaeq, "bqaeq", dst, a, b;
    @fixed bqb, "bqb", dst, a, b;
    @fixed bqbeq, "bqbeq", dst, a, b;
    @fixed bqgt, "bqgt", dst, a, b;
    @fixed bqgteq, "bqgteq", dst, a, b;
    @fixed bqlt, "bqlt", dst, a, b;
    @fixed bqlteq, "bqlteq", dst, a, b;
    @fixed bbeq, "bbeq", dst, a, b;
    @fixed bbneq, "bbneq", dst, a, b;
    @fixed bba, "bba", dst, a, b;
    @fixed bbaeq, "bbaeq", dst, a, b;
    @fixed bbb, "bbb", dst, a, b;
    @fixed bbbeq, "bbbeq", dst, a, b;
    @fixed bbgt, "bbgt", dst, a, b;
    @fixed bbgteq, "bbgteq", dst, a, b;
    @fixed bblt, "bblt", dst, a, b;
    @fixed bblteq, "bblteq", dst, a, b;
    @fixed btis, "btis", dst, a, b;
    @fixed btiz, "btiz", dst, a, b;
    @fixed btinz, "btinz", dst, a, b;
    @fixed btps, "btps", dst, a, b;
    @fixed btpz, "btpz", dst, a, b;
    @fixed btpnz, "btpnz", dst, a, b;
    @fixed btqs, "btqs", dst, a, b;
    @fixed btqz, "btqz", dst, a, b;
    @fixed btqnz, "btqnz", dst, a, b;
    @fixed btbs, "btbs", dst, a, b;
    @fixed btbz, "btbz", dst, a, b;
    @fixed btbnz, "btbnz", dst, a, b;
    @fixed baddio, "baddio", dst, a, b, c;
    @fixed baddis, "baddis", dst, a, b, c;
    @fixed baddiz, "baddiz", dst, a, b, c;
    @fixed baddinz, "baddinz", dst, a, b, c;
    @fixed baddpo, "baddpo", dst, a, b, c;
    @fixed baddps, "baddps", dst, a, b, c;
    @fixed baddpz, "baddpz", dst, a, b, c;
    @fixed baddpnz, "baddpnz", dst, a, b, c;
    @fixed baddqo, "baddqo", dst, a, b, c;
    @fixed baddqs, "baddqs", dst, a, b, c;
    @fixed baddqz, "baddqz", dst, a, b, c;
    @fixed baddqnz, "baddqnz", dst, a, b, c;
    @fixed bsubqo, "bsubqo", dst, a, b, c;
    @fixed bsubqs, "bsubqs", dst, a, b, c;
    @fixed bsubqz, "bsubqz", dst, a, b, c;
    @fixed bsubqnz, "bsubqnz", dst, a, b, c;
    @fixed bsubpo, "bsubpo", dst, a, b, c;
    @fixed bsubps, "bsubps", dst, a, b, c;
    @fixed bsubpz, "bsubpz", dst, a, b, c;
    @fixed bsubpnz, "bsubpnz", dst, a, b, c;
    @fixed bmulqo, "bmulqo", dst, a, b, c;
    @fixed bmulqs, "bmulqs", dst, a, b, c;
    @fixed bmulqz, "bmulqz", dst, a, b, c;
    @fixed bmulqnz, "bmulqnz", dst, a, b, c;
    @fixed bmulpo, "bmulpo", dst, a, b, c;
    @fixed bmulps, "bmulps", dst, a, b, c;
    @fixed bmulpz, "bmulpz", dst, a, b, c;
    @fixed bmulpnz, "bmulpnz", dst, a, b, c;
    @fixed borqo, "borqo", dst, a, b, c;
    @fixed borqs, "borqs", dst, a, b, c;
    @fixed borqz, "borqz", dst, a, b, c;
    @fixed borqnz, "borqnz", dst, a, b, c;
    @fixed borpo, "borpo", dst, a, b, c;
    @fixed borps, "borps", dst, a, b, c;
    @fixed borpz, "borpz", dst, a, b, c;
    @fixed borpnz, "borpnz", dst, a, b, c;
    @fixed bsubio, "bsubio", dst, a, b, c;
    @fixed bsubis, "bsubis", dst, a, b, c;
    @fixed bsubiz, "bsubiz", dst, a, b, c;
    @fixed bsubinz, "bsubinz", dst, a, b, c;
    @fixed bmulio, "bmulio", dst, a, b, c;
    @fixed bmulis, "bmulis", dst, a, b, c;
    @fixed bmuliz, "bmuliz", dst, a, b, c;
    @fixed bmulinz, "bmulinz", dst, a, b, c;
    @fixed borio, "borio", dst, a, b, c;
    @fixed boris, "boris", dst, a, b, c;
    @fixed boriz, "boriz", dst, a, b, c;
    @fixed borinz, "borinz", dst, a, b, c;
    @fixed bdeq, "bdeq", dst, a, b;
    @fixed bdneq, "bdneq", dst, a, b;
    @fixed bdgt, "bdgt", dst, a, b;
    @fixed bdgteq, "bdgteq", dst, a, b;
    @fixed bdlt, "bdlt", dst, a, b;
    @fixed bdlteq, "bdlteq", dst, a, b;
    @fixed bdequn, "bdequn", dst, a, b;
    @fixed bdnequn, "bdnequn", dst, a, b;
    @fixed bdgtun, "bdgtun", dst, a, b;
    @fixed bdgtequn, "bdgtequn", dst, a, b;
    @fixed bdltun, "bdltun", dst, a, b;
    @fixed bdltequn, "bdltequn", dst, a, b;
    @fixed bfeq, "bfeq", dst, a, b;
    @fixed bfgt, "bfgt", dst, a, b;
    @fixed bfgteq, "bfgteq", dst, a, b;
    @fixed bflt, "bflt", dst, a, b;
    @fixed bfgtun, "bfgtun", dst, a, b;
    @fixed bfgtequn, "bfgtequn", dst, a, b;
    @fixed bfltun, "bfltun", dst, a, b;
    @fixed bfltequn, "bfltequn", dst, a, b;
    @fixed jmp, "jmp", dst;
    @fixed call, "call", dst;
    @fixed ret, "ret";
    @fixed r#break, "break";
    @fixed nop, "nop";
    @fixed bo, "bo", dst;
    @fixed bs, "bs", dst;
    @fixed bz, "bz", dst;
    @fixed bnz, "bnz", dst;
    @fixed cieq, "cieq", dst, a, b;
    @fixed cineq, "cineq", dst, a, b;
    @fixed cia, "cia", dst, a, b;
    @fixed ciaeq, "ciaeq", dst, a, b;
    @fixed cib, "cib", dst, a, b;
    @fixed cibeq, "cibeq", dst, a, b;
    @fixed cigt, "cigt", dst, a, b;
    @fixed cigteq, "cigteq", dst, a, b;
    @fixed cilt, "cilt", dst, a, b;
    @fixed cilteq, "cilteq", dst, a, b;
    @fixed cbeq, "cbeq", dst, a, b;
    @fixed cbneq, "cbneq", dst, a, b;
    @fixed cba, "cba", dst, a, b;
    @fixed cbaeq, "cbaeq", dst, a, b;
    @fixed cbb, "cbb", dst, a, b;
    @fixed cbbeq, "cbbeq", dst, a, b;
    @fixed cbgt, "cbgt", dst, a, b;
    @fixed cbgteq, "cbgteq", dst, a, b;
    @fixed cblt, "cblt", dst, a, b;
    @fixed cblteq, "cblteq", dst, a, b;
    @fixed cpeq, "cpeq", dst, a, b;
    @fixed cpneq, "cpneq", dst, a, b;
    @fixed cpa, "cpa", dst, a, b;
    @fixed cpaeq, "cpaeq", dst, a, b;
    @fixed cpb, "cpb", dst, a, b;
    @fixed cpbeq, "cpbeq", dst, a, b;
    @fixed cpgt, "cpgt", dst, a, b;
    @fixed cpgteq, "cpgteq", dst, a, b;
    @fixed cplt, "cplt", dst, a, b;
    @fixed cplteq, "cplteq", dst, a, b;
    @fixed cqeq, "cqeq", dst, a, b;
    @fixed cqneq, "cqneq", dst, a, b;
    @fixed cqa, "cqa", dst, a, b;
    @fixed cqaeq, "cqaeq", dst, a, b;
    @fixed cqb, "cqb", dst, a, b;
    @fixed cqbeq, "cqbeq", dst, a, b;
    @fixed cqgt, "cqgt", dst, a, b;
    @fixed cqgteq, "cqgteq", dst, a, b;
    @fixed cqlt, "cqlt", dst, a, b;
    @fixed cqlteq, "cqlteq", dst, a, b;
    @fixed tis, "tis", dst, a, b;
    @fixed tiz, "tiz", dst, a, b;
    @fixed tinz, "tinz", dst, a, b;
    @fixed tps, "tps", dst, a, b;
    @fixed tpz, "tpz", dst, a, b;
    @fixed tpnz, "tpnz", dst, a, b;
    @fixed tqs, "tqs", dst, a, b;
    @fixed tqz, "tqz", dst, a, b;
    @fixed tqnz, "tqnz", dst, a, b;
    @fixed tbs, "tbs", dst, a, b;
    @fixed tbz, "tbz", dst, a, b;
    @fixed tbnz, "tbnz", dst, a, b;
    @fixed cfeq, "cfeq", dst, a, b;
    @fixed cfneq, "cfneq", dst, a, b;
    @fixed cfnequn, "cfnequn", dst, a, b;
    @fixed cfgt, "cfgt", dst, a, b;
    @fixed cfgteq, "cfgteq", dst, a, b;
    @fixed cflt, "cflt", dst, a, b;
    @fixed cflteq, "cflteq", dst, a, b;
    @fixed cdeq, "cdeq", dst, a, b;
    @fixed cdneq, "cdneq", dst, a, b;
    @fixed cdnequn, "cdnequn", dst, a, b;
    @fixed cdgt, "cdgt", dst, a, b;
    @fixed cdgteq, "cdgteq", dst, a, b;
    @fixed cdlt, "cdlt", dst, a, b;
    @fixed cdlteq, "cdlteq", dst, a, b;
    @fixed popcnti, "popcnti", dst, a;
    @fixed popcntq, "popcntq", dst, a;
    @fixed tzcnti, "tzcnti", dst, a;
    @fixed tzcntq, "tzcntq", dst, a;
    @fixed lzcnti, "lzcnti", dst, a;
    @fixed lzcntq, "lzcntq", dst, a;
    @fixed memfence, "memfence";
    @fixed fence, "fence";
    @fixed tls_loadb, "tls_loadb", dst, a;
    @fixed tls_loadh, "tls_loadh", dst, a;
    @fixed tls_loadi, "tls_loadi", dst, a;
    @fixed tls_loadp, "tls_loadp", dst, a;
    @fixed tls_loadq, "tls_loadq", dst, a;
    @fixed tls_storeb, "tls_storeb", dst, a;
    @fixed tls_storeh, "tls_storeh", dst, a;
    @fixed tls_storei, "tls_storei", dst, a;
    @fixed tls_storep, "tls_storep", dst, a;
    @fixed tls_storeq, "tls_storeq", dst, a;
    @fixed tls_leap, "tls_leap", dst, a;
    @fixed atomicxchgaddb, "atomicxchgaddb", dst, a;
    @fixed atomicxchgaddh, "atomicxchgaddh", dst, a;
    @fixed atomicxchgaddi, "atomicxchgaddi", dst, a;
    @fixed atomicxchgaddq, "atomicxchgaddq", dst, a;
    @fixed atomicxchgsubb, "atomicxchgsubb", dst, a;
    @fixed atomicxchgsubh, "atomicxchgsubh", dst, a;
    @fixed atomicxchgsubi, "atomicxchgsubi", dst, a;
    @fixed atomicxchgsubq, "atomicxchgsubq", dst, a;
    @fixed atomicxchgb, "atomicxchgb", dst, a;
    @fixed atomicxchgh, "atomicxchgh", dst, a;
    @fixed atomicxchgi, "atomicxchgi", dst, a;
    @fixed atomicxchgq, "atomicxchgq", dst, a;
    @fixed atomicxchgclearb, "atomicxchgclearb", dst, a;
    @fixed atomicxchgclearh, "atomicxchgclearh", dst, a;
    @fixed atomicxchgcleari, "atomicxchgcleari", dst, a;
    @fixed atomicxchgclearq, "atomicxchgclearq", dst, a;
    @fixed atomicxchgorb, "atomicxchgorb", dst, a;
    @fixed atomicxchgorh, "atomicxchgorh", dst, a;
    @fixed atomicxchgori, "atomicxchgori", dst, a;
    @fixed atomicxchgorq, "atomicxchgorq", dst, a;
    @fixed atomicxchgxorb, "atomicxchgxorb", dst, a;
    @fixed atomicxchgxorh, "atomicxchgxorh", dst, a;
    @fixed atomicxchgxori, "atomicxchgxori", dst, a;
    @fixed atomicxchgxorq, "atomicxchgxorq", dst, a;
    @fixed batomicweakcasb, "batomicweakcasb", dst, a, b, c;
    @fixed batomicweakcash, "batomicweakcash", dst, a, b, c;
    @fixed batomicweakcasi, "batomicweakcasi", dst, a, b, c;
    @fixed batomicweakcasq, "batomicweakcasq", dst, a, b, c;
    @fixed atomicweakcasb, "atomicweakcasb", dst, a, b;
    @fixed atomicweakcash, "atomicweakcash", dst, a, b;
    @fixed atomicweakcasi, "atomicweakcasi", dst, a, b;
    @fixed atomicweakcasq, "atomicweakcasq", dst, a, b;
    @fixed loadlinkacqb, "loadlinkacqb", dst, a;
    @fixed loadlinkacqh, "loadlinkacqh", dst, a;
    @fixed loadlinkacqi, "loadlinkacqi", dst, a;
    @fixed loadlinkacqq, "loadlinkacqq", dst, a;
    @fixed storecondrelb, "storecondrelb", dst, a, b;
    @fixed storecondrelh, "storecondrelh", dst, a, b;
    @fixed storecondreli, "storecondreli", dst, a, b;
    @fixed storecondrelq, "storecondrelq", dst, a, b;
    @fixed tagCodePtr, "tagCodePtr";
    @fixed tagReturnAddress, "tagReturnAddress";
    @fixed untagReturnAddress, "untagReturnAddress";
    @fixed removeCodePtrTag, "removeCodePtrTag";
    @fixed untagArrayPtr, "untagArrayPtr";
    @fixed removeArrayPtrTag, "removeArrayPtrTag";
    @fixed bswapi, "bswapi", dst, a;
    @fixed bswapq, "bswapq", dst, a;
    @fixed fmin, "fmin", dst, a, b;
    @fixed fmax, "fmax", dst, a, b;
    @fixed dmin, "dmin", dst, a, b;
    @fixed dmax, "dmax", dst, a, b;
    @fixed fmaddf, "fmaddf", dst, a, b, c;
    @fixed fmaddd, "fmaddd", dst, a, b, c;
    @fixed fmsubf, "fmsubf", dst, a, b, c;
    @fixed fmsubd, "fmsubd", dst, a, b, c;
    @fixed fnmaddf, "fnmaddf", dst, a, b, c;
    @fixed fnmaddd, "fnmaddd", dst, a, b, c;
    @fixed fnmsubf, "fnmsubf", dst, a, b, c;
    @fixed fnmsubd, "fnmsubd", dst, a, b, c;
    @fixed pause, "pause";
    @fixed zxb2i, "zxb2i", dst, a;
    @fixed zxh2i, "zxh2i", dst, a;
    @fixed zxb2q, "zxb2q", dst, a;
    @fixed zxh2q, "zxh2q", dst, a;
    @variadic pop, "pop";
    @variadic push, "push";
    @variadic pushCalleeSaves, "pushCalleeSaves";
    @variadic popCalleeSaves, "popCalleeSaves";
    @variadic popv, "popv";
    @variadic pushv, "pushv";
}