Skip to content

Commit

Permalink
Fix capstone-engine#2128 by adding missing mapping values.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 committed Apr 23, 2024
1 parent 911b15c commit 1b2b90e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion arch/X86/X86MappingInsn.inc
Original file line number Diff line number Diff line change
Expand Up @@ -18808,7 +18808,7 @@
{
X86_TEST64mr, X86_INS_TEST, 1,
#ifndef CAPSTONE_DIET
{ 0 }, { 0 }, { 0 }, 0, 0
{ 0 }, { X86_REG_EFLAGS, 0 }, { 0 }, 0, 0
#endif
},

Expand Down
4 changes: 2 additions & 2 deletions arch/X86/X86MappingInsnOp.inc
Original file line number Diff line number Diff line change
Expand Up @@ -13434,8 +13434,8 @@
},

{ /* X86_TEST64mr, X86_INS_TEST: test */
0,
{ 0 }
X86_EFLAGS_RESET_OF | X86_EFLAGS_MODIFY_SF | X86_EFLAGS_MODIFY_ZF | X86_EFLAGS_UNDEFINED_AF | X86_EFLAGS_MODIFY_PF | X86_EFLAGS_RESET_CF,
{ CS_AC_READ, CS_AC_READ, 0 }
},

{ /* X86_TEST64ri32, X86_INS_TEST: test */
Expand Down
3 changes: 3 additions & 0 deletions suite/cstest/issues.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1043,3 +1043,6 @@
!# CS_ARCH_ARM64, CS_MODE_LITTLE_ENDIAN, None
0x0: 0x00,0x00,0x00,0x4c == st4 {v0.16b, v1.16b, v2.16b, v3.16b}, [x0]

!# issue 2128
!# CS_ARCH_X86, CS_MODE_64, CS_OPT_DETAIL
0x0: 0x4c,0x85,0x7d,0x30 == test qword ptr [rbp + 0x30], r15 ; operands[1].type: REG = r15 ; operands[1].access: READ ; Registers read: rbp r15 ; Registers modified: rflags

0 comments on commit 1b2b90e

Please sign in to comment.