about summary refs log tree commit diff stats
path: root/miasm2/arch/x86/arch.py
diff options
context:
space:
mode:
authorAjax <commial@gmail.com>2018-02-09 10:43:48 +0100
committerAjax <commial@gmail.com>2018-02-09 17:36:31 +0100
commit4a94e84923d8ac059fc2c41a5876835613204ad2 (patch)
tree88606d70093bf53de06a36ce13bfe8fbcf15aba5 /miasm2/arch/x86/arch.py
parentb8bd5c0f24b786616b6f372f7f6dfad43438ab01 (diff)
downloadmiasm-4a94e84923d8ac059fc2c41a5876835613204ad2.tar.gz
miasm-4a94e84923d8ac059fc2c41a5876835613204ad2.zip
Add PMADDWD instruction
0F F5 /r 	PMADDWD mm, mm/m64
66 0F F5 /r 	PMADDWD xmm1, xmm2/m128
Diffstat (limited to '')
-rw-r--r--miasm2/arch/x86/arch.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/miasm2/arch/x86/arch.py b/miasm2/arch/x86/arch.py
index 839487e8..ae5f3fd7 100644
--- a/miasm2/arch/x86/arch.py
+++ b/miasm2/arch/x86/arch.py
@@ -4529,6 +4529,10 @@ addop("paddsw", [bs8(0x0f), bs8(0xed), no_xmm_pref] +
 addop("paddsw", [bs8(0x0f), bs8(0xed), pref_66] +
       rmmod(xmm_reg, rm_arg_xmm_m128))
 
+addop("pmaddwd", [bs8(0x0f), bs8(0xf5), no_xmm_pref] +
+      rmmod(mm_reg, rm_arg_mm_m64))
+addop("pmaddwd", [bs8(0x0f), bs8(0xf5), pref_66] +
+      rmmod(xmm_reg, rm_arg_xmm_m128))
 
 mn_x86.bintree = factor_one_bit(mn_x86.bintree)
 # mn_x86.bintree = factor_fields_all(mn_x86.bintree)