use crate::{Assembler, IntoOperand, Op};
use smallvec::SmallVec;
macro_rules! mnemonic_methods {
(@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";
}