mirror of
https://github.com/odin-lang/Odin.git
synced 2026-09-16 08:03:26 -04:00
Add support for x86 mnenomics in and out
This commit is contained in:
1 parent
4e0fe5cf4f
commit
baae2636b8
15 files changed
+643
-563
No files matched your search
@@ -1326,6 +1326,8 @@ Mnemonic :: enum u16 {
|
||||
WBNOINVD,
|
||||
SERIALIZE,
|
||||
PREFETCH,
|
||||
IN,
|
||||
OUT,
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// SECTION: 4.29 WAITPKG Instructions
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -8,7 +8,7 @@ package rexcode_x86_generated
|
||||
import lib "../.."
|
||||
|
||||
@(rodata)
|
||||
ENCODE_FORMS := [2454]lib.Encoding{
|
||||
ENCODE_FORMS := [2466]lib.Encoding{
|
||||
// .MOV
|
||||
{.MOV, {.RM8, .R8, .NONE, .NONE}, {.MR, .REG, .NONE, .NONE}, 0x88, 0, {explicit_count=2}},
|
||||
{.MOV, {.RM16, .R16, .NONE, .NONE}, {.MR, .REG, .NONE, .NONE}, 0x89, 0, {explicit_count=2}},
|
||||
@@ -3632,6 +3632,20 @@ ENCODE_FORMS := [2454]lib.Encoding{
|
||||
{.SERIALIZE, {.NONE, .NONE, .NONE, .NONE}, {.NONE, .NONE, .NONE, .NONE}, 0x01, 232, {esc=._0F}},
|
||||
// .PREFETCH
|
||||
{.PREFETCH, {.M8, .NONE, .NONE, .NONE}, {.MR, .NONE, .NONE, .NONE}, 0x0D, 0, {esc=._0F, modrm_reg_ext=true, explicit_count=1}},
|
||||
// .IN
|
||||
{.IN, {.AL_IMPL, .IMM8, .NONE, .NONE}, {.IMPL, .IB, .NONE, .NONE}, 0xE4, 0, {explicit_count=1, has_implicit=true}},
|
||||
{.IN, {.AX_IMPL, .IMM8, .NONE, .NONE}, {.IMPL, .IB, .NONE, .NONE}, 0xE5, 0, {opsize_16=true, explicit_count=1, has_implicit=true}},
|
||||
{.IN, {.EAX_IMPL, .IMM8, .NONE, .NONE}, {.IMPL, .IB, .NONE, .NONE}, 0xE5, 0, {explicit_count=1, has_implicit=true}},
|
||||
{.IN, {.AL_IMPL, .DX_IMPL, .NONE, .NONE}, {.IMPL, .IMPL, .NONE, .NONE}, 0xEC, 0, {has_implicit=true}},
|
||||
{.IN, {.AX_IMPL, .DX_IMPL, .NONE, .NONE}, {.IMPL, .IMPL, .NONE, .NONE}, 0xED, 0, {opsize_16=true, has_implicit=true}},
|
||||
{.IN, {.EAX_IMPL, .DX_IMPL, .NONE, .NONE}, {.IMPL, .IMPL, .NONE, .NONE}, 0xED, 0, {has_implicit=true}},
|
||||
// .OUT
|
||||
{.OUT, {.IMM8, .AL_IMPL, .NONE, .NONE}, {.IB, .IMPL, .NONE, .NONE}, 0xE6, 0, {explicit_count=1, has_implicit=true}},
|
||||
{.OUT, {.IMM8, .AX_IMPL, .NONE, .NONE}, {.IB, .IMPL, .NONE, .NONE}, 0xE7, 0, {opsize_16=true, explicit_count=1, has_implicit=true}},
|
||||
{.OUT, {.IMM8, .EAX_IMPL, .NONE, .NONE}, {.IB, .IMPL, .NONE, .NONE}, 0xE7, 0, {explicit_count=1, has_implicit=true}},
|
||||
{.OUT, {.DX_IMPL, .AL_IMPL, .NONE, .NONE}, {.IMPL, .IMPL, .NONE, .NONE}, 0xEE, 0, {has_implicit=true}},
|
||||
{.OUT, {.DX_IMPL, .AX_IMPL, .NONE, .NONE}, {.IMPL, .IMPL, .NONE, .NONE}, 0xEF, 0, {opsize_16=true, has_implicit=true}},
|
||||
{.OUT, {.DX_IMPL, .EAX_IMPL, .NONE, .NONE}, {.IMPL, .IMPL, .NONE, .NONE}, 0xEF, 0, {has_implicit=true}},
|
||||
// .TPAUSE
|
||||
{.TPAUSE, {.R32, .NONE, .NONE, .NONE}, {.MR, .NONE, .NONE, .NONE}, 0xAE, 6, {esc=._0F, prefix=1, modrm_reg_ext=true, explicit_count=1}},
|
||||
// .UMONITOR
|
||||
@@ -3704,7 +3718,7 @@ ENCODE_FORMS := [2454]lib.Encoding{
|
||||
}
|
||||
|
||||
@(rodata)
|
||||
CLOBBER_FORMS := [2454]lib.Clobber{
|
||||
CLOBBER_FORMS := [2466]lib.Clobber{
|
||||
// .MOV
|
||||
{written={0}, read={1}, writes_mem=true, reads_mem=true},
|
||||
{written={0}, read={1}, writes_mem=true, reads_mem=true},
|
||||
@@ -7328,6 +7342,20 @@ CLOBBER_FORMS := [2454]lib.Clobber{
|
||||
{side_effects={.SERIALIZING}},
|
||||
// .PREFETCH
|
||||
{read={0}, reads_mem=true, side_effects={.HINT}},
|
||||
// .IN
|
||||
{written={0}, read={1}, side_effects={.PRIVILEGED}},
|
||||
{written={0}, read={1}, side_effects={.PRIVILEGED}},
|
||||
{written={0}, read={1}, side_effects={.PRIVILEGED}},
|
||||
{written={0}, read={1}, side_effects={.PRIVILEGED}},
|
||||
{written={0}, read={1}, side_effects={.PRIVILEGED}},
|
||||
{written={0}, read={1}, side_effects={.PRIVILEGED}},
|
||||
// .OUT
|
||||
{read={0, 1}, side_effects={.PRIVILEGED}},
|
||||
{read={0, 1}, side_effects={.PRIVILEGED}},
|
||||
{read={0, 1}, side_effects={.PRIVILEGED}},
|
||||
{read={0, 1}, side_effects={.PRIVILEGED}},
|
||||
{read={0, 1}, side_effects={.PRIVILEGED}},
|
||||
{read={0, 1}, side_effects={.PRIVILEGED}},
|
||||
// .TPAUSE
|
||||
{read={0}, implicit_rd={.RAX, .RDX}, flags_wr={.CF}, side_effects={.HINT}},
|
||||
// .UMONITOR
|
||||
@@ -8608,42 +8636,44 @@ ENCODE_RUNS := [lib.Mnemonic]lib.Encode_Run{
|
||||
.WBNOINVD = { 2414, 1},
|
||||
.SERIALIZE = { 2415, 1},
|
||||
.PREFETCH = { 2416, 1},
|
||||
.TPAUSE = { 2417, 1},
|
||||
.UMONITOR = { 2418, 1},
|
||||
.UMWAIT = { 2419, 1},
|
||||
.MOVDIRI = { 2420, 2},
|
||||
.MOVDIR64B = { 2422, 1},
|
||||
.ENQCMD = { 2423, 1},
|
||||
.ENQCMDS = { 2424, 1},
|
||||
.AADD = { 2425, 2},
|
||||
.AAND = { 2427, 2},
|
||||
.AOR = { 2429, 2},
|
||||
.AXOR = { 2431, 2},
|
||||
.XEND = { 2433, 1},
|
||||
.XTEST = { 2434, 1},
|
||||
.VMRUN = { 2435, 1},
|
||||
.VMMCALL = { 2436, 1},
|
||||
.VMLOAD = { 2437, 1},
|
||||
.VMSAVE = { 2438, 1},
|
||||
.STGI = { 2439, 1},
|
||||
.CLGI = { 2440, 1},
|
||||
.SKINIT = { 2441, 1},
|
||||
.INVLPGA = { 2442, 1},
|
||||
.INVLPGB = { 2443, 1},
|
||||
.TLBSYNC = { 2444, 1},
|
||||
.PVALIDATE = { 2445, 1},
|
||||
.RMPADJUST = { 2446, 1},
|
||||
.RMPUPDATE = { 2447, 1},
|
||||
.PSMASH = { 2448, 1},
|
||||
.CLZERO = { 2449, 1},
|
||||
.MONITORX = { 2450, 1},
|
||||
.MWAITX = { 2451, 1},
|
||||
.RDPRU = { 2452, 1},
|
||||
.MCOMMIT = { 2453, 1},
|
||||
.IN = { 2417, 6},
|
||||
.OUT = { 2423, 6},
|
||||
.TPAUSE = { 2429, 1},
|
||||
.UMONITOR = { 2430, 1},
|
||||
.UMWAIT = { 2431, 1},
|
||||
.MOVDIRI = { 2432, 2},
|
||||
.MOVDIR64B = { 2434, 1},
|
||||
.ENQCMD = { 2435, 1},
|
||||
.ENQCMDS = { 2436, 1},
|
||||
.AADD = { 2437, 2},
|
||||
.AAND = { 2439, 2},
|
||||
.AOR = { 2441, 2},
|
||||
.AXOR = { 2443, 2},
|
||||
.XEND = { 2445, 1},
|
||||
.XTEST = { 2446, 1},
|
||||
.VMRUN = { 2447, 1},
|
||||
.VMMCALL = { 2448, 1},
|
||||
.VMLOAD = { 2449, 1},
|
||||
.VMSAVE = { 2450, 1},
|
||||
.STGI = { 2451, 1},
|
||||
.CLGI = { 2452, 1},
|
||||
.SKINIT = { 2453, 1},
|
||||
.INVLPGA = { 2454, 1},
|
||||
.INVLPGB = { 2455, 1},
|
||||
.TLBSYNC = { 2456, 1},
|
||||
.PVALIDATE = { 2457, 1},
|
||||
.RMPADJUST = { 2458, 1},
|
||||
.RMPUPDATE = { 2459, 1},
|
||||
.PSMASH = { 2460, 1},
|
||||
.CLZERO = { 2461, 1},
|
||||
.MONITORX = { 2462, 1},
|
||||
.MWAITX = { 2463, 1},
|
||||
.RDPRU = { 2464, 1},
|
||||
.MCOMMIT = { 2465, 1},
|
||||
}
|
||||
|
||||
// Emit descriptor per form (derived from ENCODE_FORMS via lib.form_to_recipe).
|
||||
ENCODE_RECIPES: [2454]lib.Form_Recipe
|
||||
ENCODE_RECIPES: [2466]lib.Form_Recipe
|
||||
@(init) _fill_recipes :: proc "contextless" () {
|
||||
for i in 0 ..< len(ENCODE_FORMS) {
|
||||
ENCODE_RECIPES[i] = lib.form_to_recipe(&ENCODE_FORMS[i])
|
||||
|
||||
@@ -4911,6 +4911,22 @@ INSTRUCTION_TABLE := [Mnemonic][]Form{
|
||||
.PREFETCH = {
|
||||
{{.PREFETCH, {.M8, .NONE, .NONE, .NONE}, {.MR, .NONE, .NONE, .NONE}, 0x0D, 0, {esc=._0F, modrm_reg_ext=true}}, {read={0}, reads_mem=true, side_effects={.HINT}}},
|
||||
},
|
||||
.IN = {
|
||||
{{.IN, {.AL_IMPL, .IMM8, .NONE, .NONE}, {.IMPL, .IB, .NONE, .NONE}, 0xE4, 0, {}}, {written={0}, read={1}, side_effects={.PRIVILEGED}}},
|
||||
{{.IN, {.AX_IMPL, .IMM8, .NONE, .NONE}, {.IMPL, .IB, .NONE, .NONE}, 0xE5, 0, {opsize_16=true}}, {written={0}, read={1}, side_effects={.PRIVILEGED}}},
|
||||
{{.IN, {.EAX_IMPL, .IMM8, .NONE, .NONE}, {.IMPL, .IB, .NONE, .NONE}, 0xE5, 0, {}}, {written={0}, read={1}, side_effects={.PRIVILEGED}}},
|
||||
{{.IN, {.AL_IMPL, .DX_IMPL, .NONE, .NONE}, {.IMPL, .IMPL, .NONE, .NONE}, 0xEC, 0, {}}, {written={0}, read={1}, side_effects={.PRIVILEGED}}},
|
||||
{{.IN, {.AX_IMPL, .DX_IMPL, .NONE, .NONE}, {.IMPL, .IMPL, .NONE, .NONE}, 0xED, 0, {opsize_16=true}}, {written={0}, read={1}, side_effects={.PRIVILEGED}}},
|
||||
{{.IN, {.EAX_IMPL, .DX_IMPL, .NONE, .NONE}, {.IMPL, .IMPL, .NONE, .NONE}, 0xED, 0, {}}, {written={0}, read={1}, side_effects={.PRIVILEGED}}},
|
||||
},
|
||||
.OUT = {
|
||||
{{.OUT, {.IMM8, .AL_IMPL, .NONE, .NONE}, {.IB, .IMPL, .NONE, .NONE}, 0xE6, 0, {}}, {read={0, 1}, side_effects={.PRIVILEGED}}},
|
||||
{{.OUT, {.IMM8, .AX_IMPL, .NONE, .NONE}, {.IB, .IMPL, .NONE, .NONE}, 0xE7, 0, {opsize_16=true}}, {read={0, 1}, side_effects={.PRIVILEGED}}},
|
||||
{{.OUT, {.IMM8, .EAX_IMPL, .NONE, .NONE}, {.IB, .IMPL, .NONE, .NONE}, 0xE7, 0, {}}, {read={0, 1}, side_effects={.PRIVILEGED}}},
|
||||
{{.OUT, {.DX_IMPL, .AL_IMPL, .NONE, .NONE}, {.IMPL, .IMPL, .NONE, .NONE}, 0xEE, 0, {}}, {read={0, 1}, side_effects={.PRIVILEGED}}},
|
||||
{{.OUT, {.DX_IMPL, .AX_IMPL, .NONE, .NONE}, {.IMPL, .IMPL, .NONE, .NONE}, 0xEF, 0, {opsize_16=true}}, {read={0, 1}, side_effects={.PRIVILEGED}}},
|
||||
{{.OUT, {.DX_IMPL, .EAX_IMPL, .NONE, .NONE}, {.IMPL, .IMPL, .NONE, .NONE}, 0xEF, 0, {}}, {read={0, 1}, side_effects={.PRIVILEGED}}},
|
||||
},
|
||||
.TPAUSE = {
|
||||
{{.TPAUSE, {.R32, .NONE, .NONE, .NONE}, {.MR, .NONE, .NONE, .NONE}, 0xAE, 6, {esc=._0F, prefix=PREFIX_66, modrm_reg_ext=true}}, {read={0}, implicit_rd={.RAX, .RDX}, flags_wr={.CF}, side_effects={.HINT}}},
|
||||
},
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.0 KiB |
Binary file not shown.
+32
-26
@@ -86,9 +86,9 @@ struct Asm_amd64 {
|
||||
M_WRSSD, M_WRSSQ, M_WRUSSD, M_WRUSSQ, M_SETSSBSY, M_CLRSSBSY, M_ENDBR64, M_ENDBR32, M_XSAVE, M_XSAVE64, M_XRSTOR, M_XRSTOR64, M_XSAVEOPT, M_XSAVEOPT64, M_XSAVEC, M_XSAVEC64,
|
||||
M_XSAVES, M_XSAVES64, M_XRSTORS, M_XRSTORS64, M_PREFETCHT0, M_PREFETCHT1, M_PREFETCHT2, M_PREFETCHNTA, M_PREFETCHW, M_CLFLUSHOPT, M_CLWB, M_CLDEMOTE, M_BSWAP, M_CMPXCHG, M_CMPXCHG8B, M_CMPXCHG16B,
|
||||
M_XADD, M_BOUND, M_ENTER, M_LEAVE, M_XLAT, M_XLATB, M_MOVBE, M_RDRAND, M_RDSEED, M_SWAPGS, M_MONITOR, M_MWAIT, M_CLAC, M_STAC, M_RDFSBASE, M_RDGSBASE,
|
||||
M_WRFSBASE, M_WRGSBASE, M_PTWRITE, M_RDPID, M_WBNOINVD, M_SERIALIZE, M_PREFETCH, M_TPAUSE, M_UMONITOR, M_UMWAIT, M_MOVDIRI, M_MOVDIR64B, M_ENQCMD, M_ENQCMDS, M_AADD, M_AAND,
|
||||
M_AOR, M_AXOR, M_XEND, M_XTEST, M_VMRUN, M_VMMCALL, M_VMLOAD, M_VMSAVE, M_STGI, M_CLGI, M_SKINIT, M_INVLPGA, M_INVLPGB, M_TLBSYNC, M_PVALIDATE, M_RMPADJUST,
|
||||
M_RMPUPDATE, M_PSMASH, M_CLZERO, M_MONITORX, M_MWAITX, M_RDPRU, M_MCOMMIT,
|
||||
M_WRFSBASE, M_WRGSBASE, M_PTWRITE, M_RDPID, M_WBNOINVD, M_SERIALIZE, M_PREFETCH, M_IN, M_OUT, M_TPAUSE, M_UMONITOR, M_UMWAIT, M_MOVDIRI, M_MOVDIR64B, M_ENQCMD, M_ENQCMDS,
|
||||
M_AADD, M_AAND, M_AOR, M_AXOR, M_XEND, M_XTEST, M_VMRUN, M_VMMCALL, M_VMLOAD, M_VMSAVE, M_STGI, M_CLGI, M_SKINIT, M_INVLPGA, M_INVLPGB, M_TLBSYNC,
|
||||
M_PVALIDATE, M_RMPADJUST, M_RMPUPDATE, M_PSMASH, M_CLZERO, M_MONITORX, M_MWAITX, M_RDPRU, M_MCOMMIT,
|
||||
|
||||
MNEMONIC_COUNT
|
||||
};
|
||||
@@ -439,9 +439,9 @@ struct Asm_amd64 {
|
||||
};
|
||||
|
||||
|
||||
static EncodeRun const raw_encode_runs [1239];
|
||||
static u8 const raw_encode_forms [39264];
|
||||
static u8 const raw_clobber_forms[39264];
|
||||
static EncodeRun const raw_encode_runs [1241];
|
||||
static u8 const raw_encode_forms [39456];
|
||||
static u8 const raw_clobber_forms[39456];
|
||||
|
||||
StringMap<Mnemonic> mnemonic_map;
|
||||
StringMap<Prefix> prefix_map;
|
||||
@@ -766,9 +766,9 @@ String const Asm_amd64::mnemonic_strings[Asm_amd64::MNEMONIC_COUNT] {
|
||||
str_lit("wrssd"), str_lit("wrssq"), str_lit("wrussd"), str_lit("wrussq"), str_lit("setssbsy"), str_lit("clrssbsy"), str_lit("endbr64"), str_lit("endbr32"), str_lit("xsave"), str_lit("xsave64"), str_lit("xrstor"), str_lit("xrstor64"), str_lit("xsaveopt"), str_lit("xsaveopt64"), str_lit("xsavec"), str_lit("xsavec64"),
|
||||
str_lit("xsaves"), str_lit("xsaves64"), str_lit("xrstors"), str_lit("xrstors64"), str_lit("prefetcht0"), str_lit("prefetcht1"), str_lit("prefetcht2"), str_lit("prefetchnta"), str_lit("prefetchw"), str_lit("clflushopt"), str_lit("clwb"), str_lit("cldemote"), str_lit("bswap"), str_lit("cmpxchg"), str_lit("cmpxchg8b"), str_lit("cmpxchg16b"),
|
||||
str_lit("xadd"), str_lit("bound"), str_lit("enter"), str_lit("leave"), str_lit("xlat"), str_lit("xlatb"), str_lit("movbe"), str_lit("rdrand"), str_lit("rdseed"), str_lit("swapgs"), str_lit("monitor"), str_lit("mwait"), str_lit("clac"), str_lit("stac"), str_lit("rdfsbase"), str_lit("rdgsbase"),
|
||||
str_lit("wrfsbase"), str_lit("wrgsbase"), str_lit("ptwrite"), str_lit("rdpid"), str_lit("wbnoinvd"), str_lit("serialize"), str_lit("prefetch"), str_lit("tpause"), str_lit("umonitor"), str_lit("umwait"), str_lit("movdiri"), str_lit("movdir64b"), str_lit("enqcmd"), str_lit("enqcmds"), str_lit("aadd"), str_lit("aand"),
|
||||
str_lit("aor"), str_lit("axor"), str_lit("xend"), str_lit("xtest"), str_lit("vmrun"), str_lit("vmmcall"), str_lit("vmload"), str_lit("vmsave"), str_lit("stgi"), str_lit("clgi"), str_lit("skinit"), str_lit("invlpga"), str_lit("invlpgb"), str_lit("tlbsync"), str_lit("pvalidate"), str_lit("rmpadjust"),
|
||||
str_lit("rmpupdate"), str_lit("psmash"), str_lit("clzero"), str_lit("monitorx"), str_lit("mwaitx"), str_lit("rdpru"), str_lit("mcommit"),
|
||||
str_lit("wrfsbase"), str_lit("wrgsbase"), str_lit("ptwrite"), str_lit("rdpid"), str_lit("wbnoinvd"), str_lit("serialize"), str_lit("prefetch"), str_lit("in"), str_lit("out"), str_lit("tpause"), str_lit("umonitor"), str_lit("umwait"), str_lit("movdiri"), str_lit("movdir64b"), str_lit("enqcmd"), str_lit("enqcmds"),
|
||||
str_lit("aadd"), str_lit("aand"), str_lit("aor"), str_lit("axor"), str_lit("xend"), str_lit("xtest"), str_lit("vmrun"), str_lit("vmmcall"), str_lit("vmload"), str_lit("vmsave"), str_lit("stgi"), str_lit("clgi"), str_lit("skinit"), str_lit("invlpga"), str_lit("invlpgb"), str_lit("tlbsync"),
|
||||
str_lit("pvalidate"), str_lit("rmpadjust"), str_lit("rmpupdate"), str_lit("psmash"), str_lit("clzero"), str_lit("monitorx"), str_lit("mwaitx"), str_lit("rdpru"), str_lit("mcommit"),
|
||||
};
|
||||
String const Asm_amd64::prefix_strings[Asm_amd64::PREFIX_COUNT] {
|
||||
str_lit(""), str_lit("es"), str_lit("cs"), str_lit("ss"), str_lit("ds"), str_lit("rex"), str_lit("evex"), str_lit("fs"), str_lit("gs"), str_lit("vex"), str_lit("lock"), str_lit("repne"), str_lit("rep"),
|
||||
@@ -805,7 +805,7 @@ String const Asm_amd64::register_strings[Asm_amd64::REG_COUNT] {
|
||||
str_lit("bnd2"), str_lit("bnd3"), str_lit("mm0"), str_lit("mm1"), str_lit("mm2"), str_lit("mm3"), str_lit("mm4"), str_lit("mm5"), str_lit("mm6"), str_lit("mm7"), str_lit("st0"), str_lit("st1"), str_lit("st2"), str_lit("st3"), str_lit("st4"), str_lit("st5"),
|
||||
str_lit("st6"), str_lit("st7"), str_lit("rip"),
|
||||
};
|
||||
Asm_amd64::EncodeRun const Asm_amd64::raw_encode_runs[1239] = {
|
||||
Asm_amd64::EncodeRun const Asm_amd64::raw_encode_runs[1241] = {
|
||||
{ 0, 0}, { 0, 32}, { 32, 9}, { 41, 5}, { 46, 5}, { 51, 1}, { 52, 7}, { 59, 9}, { 68, 6}, { 74, 3}, { 77, 19}, { 96, 19}, { 115, 19}, { 134, 19}, { 153, 4}, { 157, 13},
|
||||
{ 170, 4}, { 174, 4}, { 178, 6}, { 184, 6}, { 190, 4}, { 194, 19}, { 213, 19}, { 232, 19}, { 251, 19}, { 270, 4}, { 274, 12}, { 286, 12}, { 298, 12}, { 310, 12}, { 322, 12}, { 334, 12},
|
||||
{ 346, 12}, { 358, 12}, { 370, 6}, { 376, 6}, { 382, 6}, { 388, 6}, { 394, 6}, { 400, 6}, { 406, 3}, { 409, 3}, { 412, 3}, { 415, 3}, { 418, 3}, { 421, 6}, { 427, 2}, { 429, 2},
|
||||
@@ -881,11 +881,11 @@ Asm_amd64::EncodeRun const Asm_amd64::raw_encode_runs[1239] = {
|
||||
{2340, 1}, {2341, 1}, {2342, 1}, {2343, 1}, {2344, 1}, {2345, 1}, {2346, 1}, {2347, 1}, {2348, 1}, {2349, 1}, {2350, 1}, {2351, 1}, {2352, 1}, {2353, 1}, {2354, 1}, {2355, 1},
|
||||
{2356, 1}, {2357, 1}, {2358, 1}, {2359, 1}, {2360, 1}, {2361, 1}, {2362, 1}, {2363, 1}, {2364, 1}, {2365, 1}, {2366, 1}, {2367, 1}, {2368, 2}, {2370, 4}, {2374, 1}, {2375, 1},
|
||||
{2376, 4}, {2380, 2}, {2382, 1}, {2383, 1}, {2384, 1}, {2385, 1}, {2386, 6}, {2392, 3}, {2395, 3}, {2398, 1}, {2399, 1}, {2400, 1}, {2401, 1}, {2402, 1}, {2403, 2}, {2405, 2},
|
||||
{2407, 2}, {2409, 2}, {2411, 2}, {2413, 1}, {2414, 1}, {2415, 1}, {2416, 1}, {2417, 1}, {2418, 1}, {2419, 1}, {2420, 2}, {2422, 1}, {2423, 1}, {2424, 1}, {2425, 2}, {2427, 2},
|
||||
{2429, 2}, {2431, 2}, {2433, 1}, {2434, 1}, {2435, 1}, {2436, 1}, {2437, 1}, {2438, 1}, {2439, 1}, {2440, 1}, {2441, 1}, {2442, 1}, {2443, 1}, {2444, 1}, {2445, 1}, {2446, 1},
|
||||
{2447, 1}, {2448, 1}, {2449, 1}, {2450, 1}, {2451, 1}, {2452, 1}, {2453, 1},
|
||||
{2407, 2}, {2409, 2}, {2411, 2}, {2413, 1}, {2414, 1}, {2415, 1}, {2416, 1}, {2417, 6}, {2423, 6}, {2429, 1}, {2430, 1}, {2431, 1}, {2432, 2}, {2434, 1}, {2435, 1}, {2436, 1},
|
||||
{2437, 2}, {2439, 2}, {2441, 2}, {2443, 2}, {2445, 1}, {2446, 1}, {2447, 1}, {2448, 1}, {2449, 1}, {2450, 1}, {2451, 1}, {2452, 1}, {2453, 1}, {2454, 1}, {2455, 1}, {2456, 1},
|
||||
{2457, 1}, {2458, 1}, {2459, 1}, {2460, 1}, {2461, 1}, {2462, 1}, {2463, 1}, {2464, 1}, {2465, 1},
|
||||
};
|
||||
u8 const Asm_amd64::raw_encode_forms[39264] = {
|
||||
u8 const Asm_amd64::raw_encode_forms[39456] = {
|
||||
0x01, 0x00, 0x05, 0x01, 0x00, 0x00, 0x01, 0x02, 0x00, 0x00, 0x88, 0x00, 0x00, 0x00, 0x08, 0x00, 0x01, 0x00, 0x06, 0x02, 0x00, 0x00, 0x01, 0x02, 0x00, 0x00, 0x89, 0x00, 0x00, 0x00, 0x08, 0x00, 0x01, 0x00, 0x07, 0x03, 0x00, 0x00, 0x01, 0x02, 0x00, 0x00, 0x89, 0x00, 0x00, 0x00, 0x08, 0x00, 0x01, 0x00, 0x08, 0x04, 0x00, 0x00, 0x01, 0x02, 0x00, 0x00, 0x89, 0x00, 0x00, 0x08, 0x08, 0x00,
|
||||
0x01, 0x00, 0x01, 0x05, 0x00, 0x00, 0x02, 0x01, 0x00, 0x00, 0x8a, 0x00, 0x00, 0x00, 0x08, 0x00, 0x01, 0x00, 0x02, 0x06, 0x00, 0x00, 0x02, 0x01, 0x00, 0x00, 0x8b, 0x00, 0x00, 0x00, 0x08, 0x00, 0x01, 0x00, 0x03, 0x07, 0x00, 0x00, 0x02, 0x01, 0x00, 0x00, 0x8b, 0x00, 0x00, 0x00, 0x08, 0x00, 0x01, 0x00, 0x04, 0x08, 0x00, 0x00, 0x02, 0x01, 0x00, 0x00, 0x8b, 0x00, 0x00, 0x08, 0x08, 0x00,
|
||||
0x01, 0x00, 0x01, 0x12, 0x00, 0x00, 0x04, 0x05, 0x00, 0x00, 0xb0, 0x00, 0x00, 0x00, 0x08, 0x00, 0x01, 0x00, 0x02, 0x13, 0x00, 0x00, 0x04, 0x06, 0x00, 0x00, 0xb8, 0x00, 0x00, 0x00, 0x08, 0x00, 0x01, 0x00, 0x03, 0x14, 0x00, 0x00, 0x04, 0x07, 0x00, 0x00, 0xb8, 0x00, 0x00, 0x00, 0x08, 0x00, 0x01, 0x00, 0x04, 0x15, 0x00, 0x00, 0x04, 0x08, 0x00, 0x00, 0xb8, 0x00, 0x00, 0x08, 0x08, 0x00,
|
||||
@@ -1490,18 +1490,21 @@ u8 const Asm_amd64::raw_encode_forms[39264] = {
|
||||
0xae, 0x04, 0x04, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0xae, 0x00, 0x09, 0x08, 0x05, 0x00, 0xaf, 0x04, 0x03, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0xae, 0x01, 0x09, 0x00, 0x05, 0x00, 0xaf, 0x04, 0x04, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0xae, 0x01, 0x09, 0x08, 0x05, 0x00, 0xb0, 0x04, 0x03, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0xae, 0x02, 0x09, 0x00, 0x05, 0x00,
|
||||
0xb0, 0x04, 0x04, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0xae, 0x02, 0x09, 0x08, 0x05, 0x00, 0xb1, 0x04, 0x03, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0xae, 0x03, 0x09, 0x00, 0x05, 0x00, 0xb1, 0x04, 0x04, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0xae, 0x03, 0x09, 0x08, 0x05, 0x00, 0xb2, 0x04, 0x07, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0xae, 0x04, 0x09, 0x00, 0x05, 0x00,
|
||||
0xb2, 0x04, 0x08, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0xae, 0x04, 0x09, 0x08, 0x05, 0x00, 0xb3, 0x04, 0x04, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0xc7, 0x07, 0x09, 0x00, 0x05, 0x00, 0xb4, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x00, 0x09, 0x00, 0x00, 0x00, 0xb5, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xe8, 0x01, 0x00, 0x00, 0x00,
|
||||
0xb6, 0x04, 0x0a, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x0d, 0x00, 0x01, 0x00, 0x05, 0x00, 0xb7, 0x04, 0x03, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0xae, 0x06, 0x05, 0x00, 0x05, 0x00, 0xb8, 0x04, 0x04, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0xae, 0x06, 0x09, 0x00, 0x05, 0x00, 0xb9, 0x04, 0x03, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0xae, 0x06, 0x0d, 0x00, 0x05, 0x00,
|
||||
0xba, 0x04, 0x0c, 0x03, 0x00, 0x00, 0x01, 0x02, 0x00, 0x00, 0xf9, 0x00, 0x02, 0x00, 0x08, 0x00, 0xba, 0x04, 0x0d, 0x04, 0x00, 0x00, 0x01, 0x02, 0x00, 0x00, 0xf9, 0x00, 0x02, 0x08, 0x08, 0x00, 0xbb, 0x04, 0x04, 0x11, 0x00, 0x00, 0x02, 0x01, 0x00, 0x00, 0xf8, 0x00, 0x06, 0x00, 0x08, 0x00, 0xbc, 0x04, 0x04, 0x11, 0x00, 0x00, 0x02, 0x01, 0x00, 0x00, 0xf8, 0x00, 0x0e, 0x00, 0x08, 0x00,
|
||||
0xbd, 0x04, 0x04, 0x11, 0x00, 0x00, 0x02, 0x01, 0x00, 0x00, 0xf8, 0x00, 0x0a, 0x00, 0x08, 0x00, 0xbe, 0x04, 0x0c, 0x03, 0x00, 0x00, 0x01, 0x02, 0x00, 0x00, 0xfc, 0x00, 0x02, 0x00, 0x08, 0x00, 0xbe, 0x04, 0x0d, 0x04, 0x00, 0x00, 0x01, 0x02, 0x00, 0x00, 0xfc, 0x00, 0x02, 0x08, 0x08, 0x00, 0xbf, 0x04, 0x0c, 0x03, 0x00, 0x00, 0x01, 0x02, 0x00, 0x00, 0xfc, 0x00, 0x06, 0x00, 0x08, 0x00,
|
||||
0xbf, 0x04, 0x0d, 0x04, 0x00, 0x00, 0x01, 0x02, 0x00, 0x00, 0xfc, 0x00, 0x06, 0x08, 0x08, 0x00, 0xc0, 0x04, 0x0c, 0x03, 0x00, 0x00, 0x01, 0x02, 0x00, 0x00, 0xfc, 0x00, 0x0e, 0x00, 0x08, 0x00, 0xc0, 0x04, 0x0d, 0x04, 0x00, 0x00, 0x01, 0x02, 0x00, 0x00, 0xfc, 0x00, 0x0e, 0x08, 0x08, 0x00, 0xc1, 0x04, 0x0c, 0x03, 0x00, 0x00, 0x01, 0x02, 0x00, 0x00, 0xfc, 0x00, 0x0a, 0x00, 0x08, 0x00,
|
||||
0xc1, 0x04, 0x0d, 0x04, 0x00, 0x00, 0x01, 0x02, 0x00, 0x00, 0xfc, 0x00, 0x0a, 0x08, 0x08, 0x00, 0xc2, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xd5, 0x01, 0x00, 0x00, 0x00, 0xc3, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xd6, 0x01, 0x00, 0x00, 0x00, 0xc4, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xd8, 0x01, 0x00, 0x00, 0x00,
|
||||
0xc5, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xd9, 0x01, 0x00, 0x00, 0x00, 0xc6, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xda, 0x01, 0x00, 0x00, 0x00, 0xc7, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xdb, 0x01, 0x00, 0x00, 0x00, 0xc8, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xdc, 0x01, 0x00, 0x00, 0x00,
|
||||
0xc9, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xdd, 0x01, 0x00, 0x00, 0x00, 0xca, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xde, 0x01, 0x00, 0x00, 0x00, 0xcb, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xdf, 0x01, 0x00, 0x00, 0x00, 0xcc, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xfe, 0x01, 0x00, 0x00, 0x00,
|
||||
0xcd, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xff, 0x01, 0x00, 0x00, 0x00, 0xce, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xff, 0x0d, 0x00, 0x00, 0x00, 0xcf, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xfe, 0x09, 0x00, 0x00, 0x00, 0xd0, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xfe, 0x0d, 0x00, 0x00, 0x00,
|
||||
0xd1, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xff, 0x09, 0x00, 0x00, 0x00, 0xd2, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xfc, 0x01, 0x00, 0x00, 0x00, 0xd3, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xfa, 0x01, 0x00, 0x00, 0x00, 0xd4, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xfb, 0x01, 0x00, 0x00, 0x00,
|
||||
0xd5, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xfd, 0x01, 0x00, 0x00, 0x00, 0xd6, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xfa, 0x09, 0x00, 0x00, 0x00,
|
||||
0xb6, 0x04, 0x0a, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x0d, 0x00, 0x01, 0x00, 0x05, 0x00, 0xb7, 0x04, 0x19, 0x12, 0x00, 0x00, 0x09, 0x05, 0x00, 0x00, 0xe4, 0x00, 0x00, 0x00, 0x24, 0x00, 0xb7, 0x04, 0x1a, 0x12, 0x00, 0x00, 0x09, 0x05, 0x00, 0x00, 0xe5, 0x00, 0x00, 0x10, 0x24, 0x00, 0xb7, 0x04, 0x1b, 0x12, 0x00, 0x00, 0x09, 0x05, 0x00, 0x00, 0xe5, 0x00, 0x00, 0x00, 0x24, 0x00,
|
||||
0xb7, 0x04, 0x19, 0x1e, 0x00, 0x00, 0x09, 0x09, 0x00, 0x00, 0xec, 0x00, 0x00, 0x00, 0x20, 0x00, 0xb7, 0x04, 0x1a, 0x1e, 0x00, 0x00, 0x09, 0x09, 0x00, 0x00, 0xed, 0x00, 0x00, 0x10, 0x20, 0x00, 0xb7, 0x04, 0x1b, 0x1e, 0x00, 0x00, 0x09, 0x09, 0x00, 0x00, 0xed, 0x00, 0x00, 0x00, 0x20, 0x00, 0xb8, 0x04, 0x12, 0x19, 0x00, 0x00, 0x05, 0x09, 0x00, 0x00, 0xe6, 0x00, 0x00, 0x00, 0x24, 0x00,
|
||||
0xb8, 0x04, 0x12, 0x1a, 0x00, 0x00, 0x05, 0x09, 0x00, 0x00, 0xe7, 0x00, 0x00, 0x10, 0x24, 0x00, 0xb8, 0x04, 0x12, 0x1b, 0x00, 0x00, 0x05, 0x09, 0x00, 0x00, 0xe7, 0x00, 0x00, 0x00, 0x24, 0x00, 0xb8, 0x04, 0x1e, 0x19, 0x00, 0x00, 0x09, 0x09, 0x00, 0x00, 0xee, 0x00, 0x00, 0x00, 0x20, 0x00, 0xb8, 0x04, 0x1e, 0x1a, 0x00, 0x00, 0x09, 0x09, 0x00, 0x00, 0xef, 0x00, 0x00, 0x10, 0x20, 0x00,
|
||||
0xb8, 0x04, 0x1e, 0x1b, 0x00, 0x00, 0x09, 0x09, 0x00, 0x00, 0xef, 0x00, 0x00, 0x00, 0x20, 0x00, 0xb9, 0x04, 0x03, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0xae, 0x06, 0x05, 0x00, 0x05, 0x00, 0xba, 0x04, 0x04, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0xae, 0x06, 0x09, 0x00, 0x05, 0x00, 0xbb, 0x04, 0x03, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0xae, 0x06, 0x0d, 0x00, 0x05, 0x00,
|
||||
0xbc, 0x04, 0x0c, 0x03, 0x00, 0x00, 0x01, 0x02, 0x00, 0x00, 0xf9, 0x00, 0x02, 0x00, 0x08, 0x00, 0xbc, 0x04, 0x0d, 0x04, 0x00, 0x00, 0x01, 0x02, 0x00, 0x00, 0xf9, 0x00, 0x02, 0x08, 0x08, 0x00, 0xbd, 0x04, 0x04, 0x11, 0x00, 0x00, 0x02, 0x01, 0x00, 0x00, 0xf8, 0x00, 0x06, 0x00, 0x08, 0x00, 0xbe, 0x04, 0x04, 0x11, 0x00, 0x00, 0x02, 0x01, 0x00, 0x00, 0xf8, 0x00, 0x0e, 0x00, 0x08, 0x00,
|
||||
0xbf, 0x04, 0x04, 0x11, 0x00, 0x00, 0x02, 0x01, 0x00, 0x00, 0xf8, 0x00, 0x0a, 0x00, 0x08, 0x00, 0xc0, 0x04, 0x0c, 0x03, 0x00, 0x00, 0x01, 0x02, 0x00, 0x00, 0xfc, 0x00, 0x02, 0x00, 0x08, 0x00, 0xc0, 0x04, 0x0d, 0x04, 0x00, 0x00, 0x01, 0x02, 0x00, 0x00, 0xfc, 0x00, 0x02, 0x08, 0x08, 0x00, 0xc1, 0x04, 0x0c, 0x03, 0x00, 0x00, 0x01, 0x02, 0x00, 0x00, 0xfc, 0x00, 0x06, 0x00, 0x08, 0x00,
|
||||
0xc1, 0x04, 0x0d, 0x04, 0x00, 0x00, 0x01, 0x02, 0x00, 0x00, 0xfc, 0x00, 0x06, 0x08, 0x08, 0x00, 0xc2, 0x04, 0x0c, 0x03, 0x00, 0x00, 0x01, 0x02, 0x00, 0x00, 0xfc, 0x00, 0x0e, 0x00, 0x08, 0x00, 0xc2, 0x04, 0x0d, 0x04, 0x00, 0x00, 0x01, 0x02, 0x00, 0x00, 0xfc, 0x00, 0x0e, 0x08, 0x08, 0x00, 0xc3, 0x04, 0x0c, 0x03, 0x00, 0x00, 0x01, 0x02, 0x00, 0x00, 0xfc, 0x00, 0x0a, 0x00, 0x08, 0x00,
|
||||
0xc3, 0x04, 0x0d, 0x04, 0x00, 0x00, 0x01, 0x02, 0x00, 0x00, 0xfc, 0x00, 0x0a, 0x08, 0x08, 0x00, 0xc4, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xd5, 0x01, 0x00, 0x00, 0x00, 0xc5, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xd6, 0x01, 0x00, 0x00, 0x00, 0xc6, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xd8, 0x01, 0x00, 0x00, 0x00,
|
||||
0xc7, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xd9, 0x01, 0x00, 0x00, 0x00, 0xc8, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xda, 0x01, 0x00, 0x00, 0x00, 0xc9, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xdb, 0x01, 0x00, 0x00, 0x00, 0xca, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xdc, 0x01, 0x00, 0x00, 0x00,
|
||||
0xcb, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xdd, 0x01, 0x00, 0x00, 0x00, 0xcc, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xde, 0x01, 0x00, 0x00, 0x00, 0xcd, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xdf, 0x01, 0x00, 0x00, 0x00, 0xce, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xfe, 0x01, 0x00, 0x00, 0x00,
|
||||
0xcf, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xff, 0x01, 0x00, 0x00, 0x00, 0xd0, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xff, 0x0d, 0x00, 0x00, 0x00, 0xd1, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xfe, 0x09, 0x00, 0x00, 0x00, 0xd2, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xfe, 0x0d, 0x00, 0x00, 0x00,
|
||||
0xd3, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xff, 0x09, 0x00, 0x00, 0x00, 0xd4, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xfc, 0x01, 0x00, 0x00, 0x00, 0xd5, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xfa, 0x01, 0x00, 0x00, 0x00, 0xd6, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xfb, 0x01, 0x00, 0x00, 0x00,
|
||||
0xd7, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xfd, 0x01, 0x00, 0x00, 0x00, 0xd8, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xfa, 0x09, 0x00, 0x00, 0x00,
|
||||
};
|
||||
u8 const Asm_amd64::raw_clobber_forms[39264] = {
|
||||
u8 const Asm_amd64::raw_clobber_forms[39456] = {
|
||||
0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x00, 0x00, 0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x00, 0x00, 0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x00, 0x00, 0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x00, 0x00,
|
||||
0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x00, 0x00, 0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x00, 0x00, 0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x00, 0x00, 0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x00, 0x00,
|
||||
0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
@@ -2106,7 +2109,10 @@ u8 const Asm_amd64::raw_clobber_forms[39264] = {
|
||||
0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
|
||||
0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00,
|
||||
0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x04, 0x00, 0x00, 0x01, 0x00, 0x00, 0x09, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x09, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00,
|
||||
0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x04, 0x00, 0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00,
|
||||
0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00,
|
||||
0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00,
|
||||
0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x01, 0x00, 0x00, 0x09, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x09, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00,
|
||||
0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x00, 0x00,
|
||||
0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x00, 0x00,
|
||||
0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x00, 0x00,
|
||||
|
||||
+7
-1
@@ -849,7 +849,9 @@ enum CheckMnemomicResult {
|
||||
|
||||
template <typename AsmCtx>
|
||||
gb_internal CheckMnemomicResult check_mnemonic_name(AsmCtx *asm_ctx, AstAsmInstruction *instr, u16 *mnemonic_) {
|
||||
String name = instr->name->Ident.token.string;
|
||||
Token token = instr->name->Ident.token;
|
||||
GB_ASSERT(token.kind == Ast_Ident || token_is_keyword(token.kind));
|
||||
String name = token.string;
|
||||
auto p = asm_ctx->prefix_lookup(name);
|
||||
if (p) {
|
||||
if (mnemonic_) *mnemonic_ = cast(u16)p;
|
||||
@@ -929,6 +931,10 @@ gb_internal void check_mnemonic(AsmCtx *asm_ctx, CheckerContext *ctx, Entity *tm
|
||||
min_count = gb_max(min_count, 0);
|
||||
max_count = gb_max(max_count, 0);
|
||||
|
||||
if (mnemonic == asm_ctx->M_IN) {
|
||||
GB_PANIC("in %d %d", min_count, max_count);
|
||||
}
|
||||
|
||||
// A prefix that none of this mnemonic's forms can take is unconditionally wrong,
|
||||
// independent of whether the operands match — catch it even on a match failure.
|
||||
if (previous_prefix > 0) {
|
||||
|
||||
Reference in new issue
Block a user