about summary refs log tree commit diff stats
path: root/miasm2/arch/x86/sem.py
diff options
context:
space:
mode:
authorAjax <commial@gmail.com>2018-02-08 13:47:43 +0100
committerAjax <commial@gmail.com>2018-02-09 17:34:35 +0100
commitd533aee1b340f21974dc3c255d04ac0d35a73e84 (patch)
tree867a8cc097c811f101620037f83e8af49e9488f1 /miasm2/arch/x86/sem.py
parenta328d6d33ce0b513bf41883380025ce8284f26d3 (diff)
downloadmiasm-d533aee1b340f21974dc3c255d04ac0d35a73e84.tar.gz
miasm-d533aee1b340f21974dc3c255d04ac0d35a73e84.zip
Add PMULLW instruction
Diffstat (limited to 'miasm2/arch/x86/sem.py')
-rw-r--r--miasm2/arch/x86/sem.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/miasm2/arch/x86/sem.py b/miasm2/arch/x86/sem.py
index 57716447..7c990199 100644
--- a/miasm2/arch/x86/sem.py
+++ b/miasm2/arch/x86/sem.py
@@ -3398,6 +3398,15 @@ psubw = vec_vertical_instr('-', 16)
 psubd = vec_vertical_instr('-', 32)
 psubq = vec_vertical_instr('-', 64)
 
+# Multiplications
+#
+
+# SSE
+pmullb = vec_vertical_instr('*', 8)
+pmullw = vec_vertical_instr('*', 16)
+pmulld = vec_vertical_instr('*', 32)
+pmullq = vec_vertical_instr('*', 64)
+
 # Floating-point arithmetic
 #
 
@@ -4645,6 +4654,12 @@ mnemo_func = {'mov': mov,
               "psubd": psubd,
               "psubq": psubq,
 
+              # SSE
+              "pmullb": pmullb,
+              "pmullw": pmullw,
+              "pmulld": pmulld,
+              "pmullq": pmullq,
+
               # Arithmetic (floating-point)
               #