Skip to content

Commit

Permalink
bndmov: show mem size by default
Browse files Browse the repository at this point in the history
  • Loading branch information
wtfsck committed May 26, 2020
1 parent 3553baf commit 154b381
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions src/UnitTests/Intel/Formatter/Intel/Test16_MemAlways.txt
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,13 @@ jmp dword ptr [bx+si]
push esi
push dword ptr [bx+si]
bndmov bnd1, bnd2
bndmov bnd1, [eax]
bndmov bnd1, qword ptr [eax]
bndcl bnd1, edx
bndcl bnd1, [eax]
bndcu bnd1, edx
bndcu bnd1, [eax]
bndmov bnd2, bnd1
bndmov [eax], bnd1
bndmov qword ptr [eax], bnd1
bndmk bnd1, [eax]
bndcn bnd1, edx
bndcn bnd1, [eax]
Expand Down
4 changes: 2 additions & 2 deletions src/UnitTests/Intel/Formatter/Intel/Test16_MemDefault.txt
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,13 @@ jmp dword ptr [bx+si]
push esi
push dword ptr [bx+si]
bndmov bnd1,bnd2
bndmov bnd1,[eax]
bndmov bnd1,qword ptr [eax]
bndcl bnd1,edx
bndcl bnd1,[eax]
bndcu bnd1,edx
bndcu bnd1,[eax]
bndmov bnd2,bnd1
bndmov [eax],bnd1
bndmov qword ptr [eax],bnd1
bndmk bnd1,[eax]
bndcn bnd1,edx
bndcn bnd1,[eax]
Expand Down
4 changes: 2 additions & 2 deletions src/UnitTests/Intel/Formatter/Intel/Test32_MemAlways.txt
Original file line number Diff line number Diff line change
Expand Up @@ -185,13 +185,13 @@ jmp dword ptr [eax]
push esi
push dword ptr [eax]
bndmov bnd1, bnd2
bndmov bnd1, [eax]
bndmov bnd1, qword ptr [eax]
bndcl bnd1, edx
bndcl bnd1, [eax]
bndcu bnd1, edx
bndcu bnd1, [eax]
bndmov bnd2, bnd1
bndmov [eax], bnd1
bndmov qword ptr [eax], bnd1
bndmk bnd1, [eax]
bndcn bnd1, edx
bndcn bnd1, [eax]
Expand Down
4 changes: 2 additions & 2 deletions src/UnitTests/Intel/Formatter/Intel/Test32_MemDefault.txt
Original file line number Diff line number Diff line change
Expand Up @@ -185,13 +185,13 @@ jmp dword ptr [eax]
push esi
push dword ptr [eax]
bndmov bnd1,bnd2
bndmov bnd1,[eax]
bndmov bnd1,qword ptr [eax]
bndcl bnd1,edx
bndcl bnd1,[eax]
bndcu bnd1,edx
bndcu bnd1,[eax]
bndmov bnd2,bnd1
bndmov [eax],bnd1
bndmov qword ptr [eax],bnd1
bndmk bnd1,[eax]
bndcn bnd1,edx
bndcn bnd1,[eax]
Expand Down
4 changes: 2 additions & 2 deletions src/UnitTests/Intel/Formatter/Intel/Test64_MemAlways.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1407,14 +1407,14 @@ prefetcht1 byte ptr [rax]
prefetcht2 byte ptr [rax]
bndldx bnd1, [rax]
bndmov bnd1, bnd2
bndmov bnd1, [rax]
bndmov bnd1, xmmword ptr [rax]
bndcl bnd1, rdx
bndcl bnd1, [rax]
bndcu bnd1, rdx
bndcu bnd1, [rax]
bndstx [rax], bnd1
bndmov bnd2, bnd1
bndmov [rax], bnd1
bndmov xmmword ptr [rax], bnd1
bndmk bnd1, [rax]
bndcn bnd1, rdx
bndcn bnd1, [rax]
Expand Down
4 changes: 2 additions & 2 deletions src/UnitTests/Intel/Formatter/Intel/Test64_MemDefault.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1407,14 +1407,14 @@ prefetcht1 [rax]
prefetcht2 [rax]
bndldx bnd1,[rax]
bndmov bnd1,bnd2
bndmov bnd1,[rax]
bndmov bnd1,xmmword ptr [rax]
bndcl bnd1,rdx
bndcl bnd1,[rax]
bndcu bnd1,rdx
bndcu bnd1,[rax]
bndstx [rax],bnd1
bndmov bnd2,bnd1
bndmov [rax],bnd1
bndmov xmmword ptr [rax],bnd1
bndmk bnd1,[rax]
bndcn bnd1,rdx
bndcn bnd1,[rax]
Expand Down
8 changes: 4 additions & 4 deletions src/csharp/Intel/Generator/Formatters/Intel/CtorInfosData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1074,15 +1074,15 @@ public static object[][] GetData(GenTypes genTypes) {
new object[] { ctorKind[nameof(CtorKind.Normal_1)], code[nameof(Code.Prefetcht1_m8)], "prefetcht1" },
new object[] { ctorKind[nameof(CtorKind.Normal_1)], code[nameof(Code.Prefetcht2_m8)], "prefetcht2" },
new object[] { ctorKind[nameof(CtorKind.Normal_2)], code[nameof(Code.Bndldx_bnd_mib)], "bndldx", instrOpInfoFlags[nameof(InstrOpInfoFlags.MemSize_Nothing)] },
new object[] { ctorKind[nameof(CtorKind.Normal_2)], code[nameof(Code.Bndmov_bnd_bndm64)], "bndmov", instrOpInfoFlags[nameof(InstrOpInfoFlags.MemSize_Nothing)] },
new object[] { ctorKind[nameof(CtorKind.Normal_2)], code[nameof(Code.Bndmov_bnd_bndm128)], "bndmov", instrOpInfoFlags[nameof(InstrOpInfoFlags.MemSize_Nothing)] },
new object[] { ctorKind[nameof(CtorKind.Normal_2)], code[nameof(Code.Bndmov_bnd_bndm64)], "bndmov", instrOpInfoFlags[nameof(InstrOpInfoFlags.ShowNoMemSize_ForceSize)] },
new object[] { ctorKind[nameof(CtorKind.Normal_2)], code[nameof(Code.Bndmov_bnd_bndm128)], "bndmov", instrOpInfoFlags[nameof(InstrOpInfoFlags.ShowNoMemSize_ForceSize)] },
new object[] { ctorKind[nameof(CtorKind.Normal_2)], code[nameof(Code.Bndcl_bnd_rm32)], "bndcl", instrOpInfoFlags[nameof(InstrOpInfoFlags.MemSize_Nothing)] },
new object[] { ctorKind[nameof(CtorKind.Normal_2)], code[nameof(Code.Bndcl_bnd_rm64)], "bndcl", instrOpInfoFlags[nameof(InstrOpInfoFlags.MemSize_Nothing)] },
new object[] { ctorKind[nameof(CtorKind.Normal_2)], code[nameof(Code.Bndcu_bnd_rm32)], "bndcu", instrOpInfoFlags[nameof(InstrOpInfoFlags.MemSize_Nothing)] },
new object[] { ctorKind[nameof(CtorKind.Normal_2)], code[nameof(Code.Bndcu_bnd_rm64)], "bndcu", instrOpInfoFlags[nameof(InstrOpInfoFlags.MemSize_Nothing)] },
new object[] { ctorKind[nameof(CtorKind.Normal_2)], code[nameof(Code.Bndstx_mib_bnd)], "bndstx", instrOpInfoFlags[nameof(InstrOpInfoFlags.MemSize_Nothing)] },
new object[] { ctorKind[nameof(CtorKind.Normal_2)], code[nameof(Code.Bndmov_bndm64_bnd)], "bndmov", instrOpInfoFlags[nameof(InstrOpInfoFlags.MemSize_Nothing)] },
new object[] { ctorKind[nameof(CtorKind.Normal_2)], code[nameof(Code.Bndmov_bndm128_bnd)], "bndmov", instrOpInfoFlags[nameof(InstrOpInfoFlags.MemSize_Nothing)] },
new object[] { ctorKind[nameof(CtorKind.Normal_2)], code[nameof(Code.Bndmov_bndm64_bnd)], "bndmov", instrOpInfoFlags[nameof(InstrOpInfoFlags.ShowNoMemSize_ForceSize)] },
new object[] { ctorKind[nameof(CtorKind.Normal_2)], code[nameof(Code.Bndmov_bndm128_bnd)], "bndmov", instrOpInfoFlags[nameof(InstrOpInfoFlags.ShowNoMemSize_ForceSize)] },
new object[] { ctorKind[nameof(CtorKind.Normal_2)], code[nameof(Code.Bndmk_bnd_m32)], "bndmk", instrOpInfoFlags[nameof(InstrOpInfoFlags.MemSize_Nothing)] },
new object[] { ctorKind[nameof(CtorKind.Normal_2)], code[nameof(Code.Bndmk_bnd_m64)], "bndmk", instrOpInfoFlags[nameof(InstrOpInfoFlags.MemSize_Nothing)] },
new object[] { ctorKind[nameof(CtorKind.Normal_2)], code[nameof(Code.Bndcn_bnd_rm32)], "bndcn", instrOpInfoFlags[nameof(InstrOpInfoFlags.MemSize_Nothing)] },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4355,7 +4355,7 @@ static byte[] GetSerializedInstrInfos() =>
// Bndmov_bnd_bndm64
0x02,// Normal_2
0xD3, 0x03,// 467 = "bndmov"
0x01,// 0x1 = MemSize_Nothing
0x02,// 0x2 = ShowNoMemSize_ForceSize

// Bndmov_bnd_bndm128
0x00,// Previous
Expand Down Expand Up @@ -4384,7 +4384,7 @@ static byte[] GetSerializedInstrInfos() =>
// Bndmov_bndm64_bnd
0x02,// Normal_2
0xD3, 0x03,// 467 = "bndmov"
0x01,// 0x1 = MemSize_Nothing
0x02,// 0x2 = ShowNoMemSize_ForceSize

// Bndmov_bndm128_bnd
0x00,// Previous
Expand Down
4 changes: 2 additions & 2 deletions src/rust/iced-x86/src/formatter/intel/fmt_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4346,7 +4346,7 @@ pub(super) static FORMATTER_TBL_DATA: &[u8] = &[
// Bndmov_bnd_bndm64
0x02,// Normal_2
0xD3, 0x03,// 467 = "bndmov"
0x01,// 0x1 = MemSize_Nothing
0x02,// 0x2 = ShowNoMemSize_ForceSize

// Bndmov_bnd_bndm128
0x00,// Previous
Expand Down Expand Up @@ -4375,7 +4375,7 @@ pub(super) static FORMATTER_TBL_DATA: &[u8] = &[
// Bndmov_bndm64_bnd
0x02,// Normal_2
0xD3, 0x03,// 467 = "bndmov"
0x01,// 0x1 = MemSize_Nothing
0x02,// 0x2 = ShowNoMemSize_ForceSize

// Bndmov_bndm128_bnd
0x00,// Previous
Expand Down

0 comments on commit 154b381

Please sign in to comment.