about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorserpilliere <fabrice.desclaux@cea.fr>2015-10-17 21:15:00 +0200
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2015-10-23 10:47:24 +0200
commita24233a8c0439370147bf87889ce78870b5dcada (patch)
tree980db6e0ed3e6bc271b635fae0736335c7a1129c
parent99363b7eabb12cbbad02a589efe2b5fc360e45f5 (diff)
downloadmiasm-a24233a8c0439370147bf87889ce78870b5dcada.tar.gz
miasm-a24233a8c0439370147bf87889ce78870b5dcada.zip
Arch/x86: add comiss/comisd
-rw-r--r--miasm2/arch/x86/arch.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/miasm2/arch/x86/arch.py b/miasm2/arch/x86/arch.py
index 54b5a6b3..0658e58c 100644
--- a/miasm2/arch/x86/arch.py
+++ b/miasm2/arch/x86/arch.py
@@ -3260,6 +3260,12 @@ addop("cmpsq", [bs8(0xa7), bs_opmode64])
 addop("cmpxchg", [bs8(0x0f), bs('1011000'), w8]
       + rmmod(rmreg, rm_arg_w8), [rm_arg_w8, rmreg])
 # XXX TODO CMPXCHG8/16
+
+addop("comiss", [bs8(0x0f), bs8(0x2f), no_xmm_pref] +
+      rmmod(xmm_reg, rm_arg_xmm_m32), [xmm_reg, rm_arg_xmm_m32])
+addop("comisd", [bs8(0x0f), bs8(0x2f), pref_66] +
+      rmmod(xmm_reg, rm_arg_xmm_m64), [xmm_reg, rm_arg_xmm_m64])
+
 addop("cpuid", [bs8(0x0f), bs8(0xa2)])
 
 addop("cwd", [bs8(0x99), bs_opmode16])