about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorTim Blazytko <tim.blazytko@rub.de>2016-04-26 20:47:00 +0200
committerTim Blazytko <tim.blazytko@rub.de>2016-04-26 21:17:14 +0200
commit259df2eabaf826c728222215d42ca0463906f745 (patch)
tree438f77c59c265a817a261452f81508d392a05bc4
parent836b47e8941d1519ebeb62ec0aa85359f7ca7f5b (diff)
downloadmiasm-259df2eabaf826c728222215d42ca0463906f745.tar.gz
miasm-259df2eabaf826c728222215d42ca0463906f745.zip
arch: added x86 opcode decoding for PSRLDQ
Diffstat (limited to '')
-rw-r--r--miasm2/arch/x86/arch.py2
-rw-r--r--test/arch/x86/arch.py2
2 files changed, 4 insertions, 0 deletions
diff --git a/miasm2/arch/x86/arch.py b/miasm2/arch/x86/arch.py
index 15b62ca1..0637d3e9 100644
--- a/miasm2/arch/x86/arch.py
+++ b/miasm2/arch/x86/arch.py
@@ -4130,6 +4130,8 @@ addop("psrld", [bs8(0x0f), bs8(0xd2), no_xmm_pref] +
 addop("psrld", [bs8(0x0f), bs8(0xd2), pref_66] +
       rmmod(xmm_reg, rm_arg_xmm), [xmm_reg, rm_arg_xmm])
 
+addop("psrldq", [bs8(0x0f), bs8(0x73), pref_66] +
+      rmmod(d3, rm_arg_xmm) + [u08], [rm_arg_xmm, u08])
 
 addop("psrlw", [bs8(0x0f), bs8(0x71), no_xmm_pref] +
       rmmod(d2, rm_arg_mm) + [u08], [rm_arg_mm, u08])
diff --git a/test/arch/x86/arch.py b/test/arch/x86/arch.py
index 6a4ab6bb..d48a707c 100644
--- a/test/arch/x86/arch.py
+++ b/test/arch/x86/arch.py
@@ -2671,6 +2671,8 @@ reg_tests = [
     "0F72D605"),
     (m32, "00000000    PSRLD      XMM6, 0x5",
     "660F72D605"),
+    (m64, "00000000    PSRLDQ     XMM0, 0x8",
+     "660f73d808"),
     (m32, "00000000    PSRLW      MM6, 0x5",
     "0F71D605"),
     (m32, "00000000    PSRLW      XMM6, 0x5",