Skip to content

Commit

Permalink
Fixed #38.
Browse files Browse the repository at this point in the history
  • Loading branch information
vlutas committed Jan 15, 2021
1 parent a0b3eee commit 1eb1c9d
Show file tree
Hide file tree
Showing 13 changed files with 129 additions and 175 deletions.
21 changes: 18 additions & 3 deletions bddisasm/include/instructions.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#ifndef INSTRUCTIONS_H
#define INSTRUCTIONS_H

const ND_INSTRUCTION gInstructions[2584] =
const ND_INSTRUCTION gInstructions[2585] =
{
// Pos:0 Instruction:"AAA" Encoding:"0x37"/""
{
Expand Down Expand Up @@ -43536,6 +43536,21 @@ const ND_INSTRUCTION gInstructions[2584] =
},

// Pos:2581 Instruction:"XSTORE" Encoding:"0x0F 0xA7 /0xC0"/""
{
ND_INS_XSTORE, ND_CAT_PADLOCK, ND_SET_CYRIX, 1583,
0,
ND_MOD_ANY,
0, ND_OPS_CNT(0, 0), 0, 0, 0, 0, 0, 0, ND_FLAG_MODRM, 0,
0,
0,
0,
0,
{
0
},
},

// Pos:2582 Instruction:"XSTORE" Encoding:"0xF3 0x0F 0xA7 /0xC0"/""
{
ND_INS_XSTORE, ND_CAT_PADLOCK, ND_SET_CYRIX, 1583,
ND_PREF_REP,
Expand All @@ -43550,7 +43565,7 @@ const ND_INSTRUCTION gInstructions[2584] =
},
},

// Pos:2582 Instruction:"XSUSLDTRK" Encoding:"0xF2 0x0F 0x01 /0xE8"/""
// Pos:2583 Instruction:"XSUSLDTRK" Encoding:"0xF2 0x0F 0x01 /0xE8"/""
{
ND_INS_XSUSLDTRK, ND_CAT_MISC, ND_SET_TSXLDTRK, 1584,
0,
Expand All @@ -43565,7 +43580,7 @@ const ND_INSTRUCTION gInstructions[2584] =
},
},

// Pos:2583 Instruction:"XTEST" Encoding:"NP 0x0F 0x01 /0xD6"/""
// Pos:2584 Instruction:"XTEST" Encoding:"NP 0x0F 0x01 /0xD6"/""
{
ND_INS_XTEST, ND_CAT_LOGIC, ND_SET_TSX, 1585,
0,
Expand Down
25 changes: 21 additions & 4 deletions bddisasm/include/table_root.h
Original file line number Diff line number Diff line change
Expand Up @@ -4077,7 +4077,7 @@ const ND_TABLE_INSTRUCTION gRootTable_root_0f_01_reg_05_00_F3_leaf =
const ND_TABLE_INSTRUCTION gRootTable_root_0f_01_reg_05_00_F2_leaf =
{
ND_ILUT_INSTRUCTION,
(const void *)&gInstructions[2582]
(const void *)&gInstructions[2583]
};

const ND_TABLE_MPREFIX gRootTable_root_0f_01_reg_05_00_mprefix =
Expand Down Expand Up @@ -4405,7 +4405,7 @@ const ND_TABLE_MPREFIX gRootTable_root_0f_01_reg_02_01_mprefix =
const ND_TABLE_INSTRUCTION gRootTable_root_0f_01_reg_02_06_NP_leaf =
{
ND_ILUT_INSTRUCTION,
(const void *)&gInstructions[2583]
(const void *)&gInstructions[2584]
};

const ND_TABLE_MPREFIX gRootTable_root_0f_01_reg_02_06_mprefix =
Expand Down Expand Up @@ -11141,17 +11141,34 @@ const ND_TABLE_MODRM_RM gRootTable_root_0f_a7_reg_05_modrmrm =
}
};

const ND_TABLE_INSTRUCTION gRootTable_root_0f_a7_reg_00_00_leaf =
const ND_TABLE_INSTRUCTION gRootTable_root_0f_a7_reg_00_00_None_leaf =
{
ND_ILUT_INSTRUCTION,
(const void *)&gInstructions[2581]
};

const ND_TABLE_INSTRUCTION gRootTable_root_0f_a7_reg_00_00_F3_leaf =
{
ND_ILUT_INSTRUCTION,
(const void *)&gInstructions[2582]
};

const ND_TABLE_MPREFIX gRootTable_root_0f_a7_reg_00_00_mprefix =
{
ND_ILUT_MAN_PREFIX,
{
/* 00 */ (const void *)&gRootTable_root_0f_a7_reg_00_00_None_leaf,
/* 01 */ NULL,
/* 02 */ (const void *)&gRootTable_root_0f_a7_reg_00_00_F3_leaf,
/* 03 */ NULL,
}
};

const ND_TABLE_MODRM_RM gRootTable_root_0f_a7_reg_00_modrmrm =
{
ND_ILUT_MODRM_RM,
{
/* 00 */ (const void *)&gRootTable_root_0f_a7_reg_00_00_leaf,
/* 00 */ (const void *)&gRootTable_root_0f_a7_reg_00_00_mprefix,
/* 01 */ NULL,
/* 02 */ NULL,
/* 03 */ NULL,
Expand Down
18 changes: 9 additions & 9 deletions bddisasm_test/basic/basic1_64.result
Original file line number Diff line number Diff line change
Expand Up @@ -4601,7 +4601,7 @@
Operand: 0, Acc: RW, Type: Register, Size: 1, RawSize: 1, Encoding: M, RegType: General Purpose, RegSize: 1, RegId: 1, RegCount: 1
Operand: 1, Acc: RW, Type: Register, Size: 1, RawSize: 1, Encoding: R, RegType: General Purpose, RegSize: 1, RegId: 0, RegCount: 1

0000000000000364 6691 XCHG ax, cx
0000000000000364 6691 XCHG cx, ax
DSIZE: 16, ASIZE: 64, VLEN: -
ISA Set: I86, Ins cat: DATAXFER, CET tracked: no
Valid modes
Expand All @@ -4613,10 +4613,10 @@
REP: no, REPcc: no, LOCK: no
HLE: no, XACQUIRE only: no, XRELEASE only: no
BND: no, BHINT: no, DNT: no
Operand: 0, Acc: RW, Type: Register, Size: 2, RawSize: 2, Encoding: S, RegType: General Purpose, RegSize: 2, RegId: 0, RegCount: 1
Operand: 1, Acc: RW, Type: Register, Size: 2, RawSize: 2, Encoding: O, RegType: General Purpose, RegSize: 2, RegId: 1, RegCount: 1
Operand: 0, Acc: RW, Type: Register, Size: 2, RawSize: 2, Encoding: O, RegType: General Purpose, RegSize: 2, RegId: 1, RegCount: 1
Operand: 1, Acc: RW, Type: Register, Size: 2, RawSize: 2, Encoding: S, RegType: General Purpose, RegSize: 2, RegId: 0, RegCount: 1

0000000000000366 91 XCHG eax, ecx
0000000000000366 91 XCHG ecx, eax
DSIZE: 32, ASIZE: 64, VLEN: -
ISA Set: I86, Ins cat: DATAXFER, CET tracked: no
Valid modes
Expand All @@ -4628,10 +4628,10 @@
REP: no, REPcc: no, LOCK: no
HLE: no, XACQUIRE only: no, XRELEASE only: no
BND: no, BHINT: no, DNT: no
Operand: 0, Acc: RW, Type: Register, Size: 4, RawSize: 4, Encoding: S, RegType: General Purpose, RegSize: 4, RegId: 0, RegCount: 1
Operand: 1, Acc: RW, Type: Register, Size: 4, RawSize: 4, Encoding: O, RegType: General Purpose, RegSize: 4, RegId: 1, RegCount: 1
Operand: 0, Acc: RW, Type: Register, Size: 4, RawSize: 4, Encoding: O, RegType: General Purpose, RegSize: 4, RegId: 1, RegCount: 1
Operand: 1, Acc: RW, Type: Register, Size: 4, RawSize: 4, Encoding: S, RegType: General Purpose, RegSize: 4, RegId: 0, RegCount: 1

0000000000000367 4891 XCHG rax, rcx
0000000000000367 4891 XCHG rcx, rax
DSIZE: 64, ASIZE: 64, VLEN: -
ISA Set: I86, Ins cat: DATAXFER, CET tracked: no
Valid modes
Expand All @@ -4643,8 +4643,8 @@
REP: no, REPcc: no, LOCK: no
HLE: no, XACQUIRE only: no, XRELEASE only: no
BND: no, BHINT: no, DNT: no
Operand: 0, Acc: RW, Type: Register, Size: 8, RawSize: 8, Encoding: S, RegType: General Purpose, RegSize: 8, RegId: 0, RegCount: 1
Operand: 1, Acc: RW, Type: Register, Size: 8, RawSize: 8, Encoding: O, RegType: General Purpose, RegSize: 8, RegId: 1, RegCount: 1
Operand: 0, Acc: RW, Type: Register, Size: 8, RawSize: 8, Encoding: O, RegType: General Purpose, RegSize: 8, RegId: 1, RegCount: 1
Operand: 1, Acc: RW, Type: Register, Size: 8, RawSize: 8, Encoding: S, RegType: General Purpose, RegSize: 8, RegId: 0, RegCount: 1

0000000000000369 488703 XCHG qword ptr [rbx], rax
DSIZE: 64, ASIZE: 64, VLEN: -
Expand Down
2 changes: 1 addition & 1 deletion bddisasm_test/simd/3dnow_64
Original file line number Diff line number Diff line change
@@ -1 +1 @@
� ���džLJNJǎǐǔǔǗǚǞǠǤǦǧǪǮǰǴǶǻǿ ���������������������
� ���LJNJǎǐǔǔǗǚǞǠǤǦǧǪǮǰǴǶǻǿ ��������������������
Expand Down
2 changes: 0 additions & 2 deletions bddisasm_test/simd/3dnow_64.asm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
pi2fd mm0,mm7
pf2iw mm0,mm7
pf2id mm0,mm7
pfrcpv mm0,mm7
pfrsqrtv mm0,mm7
pfnacc mm0,mm7
pfpnacc mm0,mm7
Expand All @@ -30,7 +29,6 @@
pi2fd mm0,[rbx]
pf2iw mm0,[rbx]
pf2id mm0,[rbx]
pfrcpv mm0,[rbx]
pfrsqrtv mm0,[rbx]
pfnacc mm0,[rbx]
pfpnacc mm0,[rbx]
Expand Down
Loading

0 comments on commit 1eb1c9d

Please sign in to comment.