Skip to content

Commit

Permalink
feat: suport more instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
liuq19 committed May 14, 2024
1 parent 7af8712 commit 3a7a9b8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions asm2asm.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,10 @@ def __call__(self, *args, **kwargs):
'MOVABSQ' : x86_64.MOV,
'VCMPEQPS' : VectorCompare(x86_64.VCMPPS, 0x00),
'VCMPTRUEPS' : VectorCompare(x86_64.VCMPPS, 0x0f),
'VCVTSI2SDL' : x86_64.VCVTSI2SD,
'VCVTSI2SDQ' : x86_64.VCVTSI2SD,
'CVTSI2SDQ' : x86_64.CVTSI2SD,
'CVTSI2SDL' : x86_64.CVTSI2SD,
}

@functools.cached_property
Expand Down Expand Up @@ -532,6 +536,14 @@ def _instr_size(self) -> Optional[int]:
'MOVSBQ' : 1,
'MOVSWQ' : 2,
'MOVSLQ' : 4,
'SETNE' : 1,
'SETNZ' : 1,
'SETLE' : 1,
'SETNLE' : 1,
'SETG' : 1,
'SETNG' : 1,
'SETGE' : 1,
'SETNGE' : 1,
}

@staticmethod
Expand Down

0 comments on commit 3a7a9b8

Please sign in to comment.