Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/asmjit/asmjit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorkobalicek <kobalicek.petr@gmail.com>2020-07-05 01:45:03 +0300
committerkobalicek <kobalicek.petr@gmail.com>2020-07-05 03:21:24 +0300
commit75f2b69a260b5f0021cc9ebefb5cf6f9ad3e55b4 (patch)
tree304d933f7798c5af7268ec32a82949a61813e0c6 /tools
parentba30278d66438815981b7c0ca9ed4ebb11266d3a (diff)
Added new instructions and removed deprecated PCOMMIT
Diffstat (limited to 'tools')
-rw-r--r--tools/tablegen-x86.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/tablegen-x86.js b/tools/tablegen-x86.js
index cc52b14..9bb1b9d 100644
--- a/tools/tablegen-x86.js
+++ b/tools/tablegen-x86.js
@@ -552,7 +552,7 @@ class X86TableGen extends core.TableGen {
var enum_ = name[0].toUpperCase() + name.substr(1);
var opcode = dbi.opcodeHex;
- var rm = dbi.rm;
+ var modR = dbi.modR;
var mm = dbi.mm;
var pp = dbi.pp;
var encoding = dbi.encoding;
@@ -590,7 +590,7 @@ class X86TableGen extends core.TableGen {
}
if (opcode !== dbi.opcodeHex ) { console.log(`ISSUE: Opcode ${opcode} != ${dbi.opcodeHex}`); return null; }
- if (rm !== dbi.rm ) { console.log(`ISSUE: RM ${rm} != ${dbi.rm}`); return null; }
+ if (modR !== dbi.modR ) { console.log(`ISSUE: ModR ${modR} != ${dbi.modR}`); return null; }
if (mm !== dbi.mm ) { console.log(`ISSUE: MM ${mm} != ${dbi.mm}`); return null; }
if (pp !== dbi.pp ) { console.log(`ISSUE: PP ${pp} != ${dbi.pp}`); return null; }
if (encoding !== dbi.encoding ) { console.log(`ISSUE: Enc ${encoding} != ${dbi.encoding}`); return null; }
@@ -605,12 +605,12 @@ class X86TableGen extends core.TableGen {
type : isVec ? "V" : "O",
prefix: ppmm,
opcode: opcode,
- o : rm === "r" ? "_" : (rm ? rm : "_"),
+ o : modR === "r" ? "_" : (modR ? modR : "_"),
l : vexL !== undefined ? vexL : "_",
w : vexW !== undefined ? vexW : "_",
ew : evexW !== undefined ? evexW : "_",
en : "_",
- tt : "_ "
+ tt : dbi.modRM ? dbi.modRM + " " : "_ "
});
return {
@@ -736,7 +736,7 @@ class AltOpcodeTable extends core.Task {
}
// X(______,OP,_,_,_,_,_,_ )
- if (opcode.startsWith("O_FPU(") || opcode.startsWith("O(") || opcode.startsWith("V(") || opcode.startsWith("E(")) {
+ if (opcode.startsWith("O(") || opcode.startsWith("V(") || opcode.startsWith("E(")) {
var value = opcode.substring(9, 11);
var remaining = opcode.substring(0, 9) + "00" + opcode.substring(11);