about summary refs log tree commit diff stats
path: root/src/miasm/arch/x86/arch.py
diff options
context:
space:
mode:
authorTheofilos Augoustis <37243696+taugoust@users.noreply.github.com>2025-11-03 12:44:05 +0100
committerGitHub <noreply@github.com>2025-11-03 12:44:05 +0100
commit716d6678a024a2e2db37e2409d1a38bbc865fac2 (patch)
treec4671d44900846d8669eee39332314fcd89a3339 /src/miasm/arch/x86/arch.py
parent083c88f096d1b654069eff874356df7b2ecd4606 (diff)
parent36acff6038a4756494b4dbd228e4090b98f8826c (diff)
downloadfocaccia-miasm-716d6678a024a2e2db37e2409d1a38bbc865fac2.tar.gz
focaccia-miasm-716d6678a024a2e2db37e2409d1a38bbc865fac2.zip
Merge pull request #1 from TUM-DSE/ck/x86-addsubps
Add ADDSUBPS instruction
Diffstat (limited to 'src/miasm/arch/x86/arch.py')
-rw-r--r--src/miasm/arch/x86/arch.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/miasm/arch/x86/arch.py b/src/miasm/arch/x86/arch.py
index 5464a779..8f96d32e 100644
--- a/src/miasm/arch/x86/arch.py
+++ b/src/miasm/arch/x86/arch.py
@@ -4334,6 +4334,10 @@ addop("addpd", [bs8(0x0f), bs8(0x58), pref_66] + rmmod(xmm_reg, rm_arg_xmm))
 addop("subps", [bs8(0x0f), bs8(0x5c), no_xmm_pref] + rmmod(xmm_reg, rm_arg_xmm))
 addop("subpd", [bs8(0x0f), bs8(0x5c), pref_66] + rmmod(xmm_reg, rm_arg_xmm))
 
+## Additions + Subtractions
+# SSE
+addop("addsubps", [bs8(0x0f), bs8(0xd0), pref_f2] + rmmod(xmm_reg, rm_arg_xmm))
+
 ## Multiplications
 # SSE
 addop("mulps", [bs8(0x0f), bs8(0x59), no_xmm_pref] + rmmod(xmm_reg, rm_arg_xmm))