about summary refs log tree commit diff stats
path: root/test/arch/x86/arch.py
diff options
context:
space:
mode:
authorAjax <commial@gmail.com>2015-11-16 16:11:12 +0100
committerAjax <commial@gmail.com>2015-11-16 16:11:12 +0100
commit7ceb97bcb90ca809f9afea68367c5d34af01d0a7 (patch)
treec5c8162e3922e0e6e32bc5a8711e805593a648f5 /test/arch/x86/arch.py
parent1cc7b090c18ce3ed73ddf79bc478fdb7572cee1f (diff)
downloadmiasm-7ceb97bcb90ca809f9afea68367c5d34af01d0a7.tar.gz
miasm-7ceb97bcb90ca809f9afea68367c5d34af01d0a7.zip
x86/arch: add cmpxchg8b and cmpxchg16b in disass and tests
Diffstat (limited to '')
-rw-r--r--test/arch/x86/arch.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/arch/x86/arch.py b/test/arch/x86/arch.py
index 5721d72a..7d6260a2 100644
--- a/test/arch/x86/arch.py
+++ b/test/arch/x86/arch.py
@@ -832,6 +832,14 @@ reg_tests = [
      "0fb000"),
     (m32, "00000000    CMPXCHG    DWORD PTR [EAX], EAX",
      "0fb100"),
+    (m16, "00000000    CMPXCHG8B  QWORD PTR [SI+0x24]",
+     "0fc74c24"),
+    (m32, "00000000    CMPXCHG8B  QWORD PTR [ESP+0x8]",
+     "0fc74c2408"),
+    (m64, "00000000    CMPXCHG8B  QWORD PTR [RSP+0x8]",
+     "0fc74c2408"),
+    (m64, "00000000    CMPXCHG16B QWORD PTR [RSP+0x8]",
+     "480fc74c2408"),
 
     (m32, "00000000    CDQ",
      "99"),