Skip to content

Commit

Permalink
Fix #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 c4d0993 commit ef0dd64
Show file tree
Hide file tree
Showing 3 changed files with 7 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
4 changes: 4 additions & 0 deletions suite/cstest/issues.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1066,3 +1066,7 @@
!# issue 2233 ARM write to PC is branch
!# CS_ARCH_ARM, CS_MODE_THUMB, CS_OPT_DETAIL
0x87,0x46 == mov pc, r0 ; Groups: IsThumb jump

!# issue 2128
!# CS_ARCH_ARM64, CS_MODE_LITTLE_ENDIAN, None
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 ef0dd64

Please sign in to comment.