about summary refs log tree commit diff stats
path: root/test/arch/x86/arch.py
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2017-09-01 13:05:54 +0200
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2017-09-01 13:08:40 +0200
commitb3ce3d7e6a6da420fbc20c3393c793a9055eaf2a (patch)
treeab7edd4bdee5447a594fa47e4c464eaf038ceaf0 /test/arch/x86/arch.py
parent752357fedaf07e196977bb5e5d87f40c67efc8dc (diff)
downloadmiasm-b3ce3d7e6a6da420fbc20c3393c793a9055eaf2a.tar.gz
miasm-b3ce3d7e6a6da420fbc20c3393c793a9055eaf2a.zip
X86: fix sib generation
Diffstat (limited to 'test/arch/x86/arch.py')
-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 72884f7e..0472e714 100644
--- a/test/arch/x86/arch.py
+++ b/test/arch/x86/arch.py
@@ -1595,6 +1595,14 @@ reg_tests = [
     (m64, "00000000    LODSQ",
      "48ad"),
 
+    (m32, "XXXXXXXX    LEA        EAX, DWORD PTR [EAX+EBX]",
+    "8d0418"),
+    (m32, "XXXXXXXX    LEA        EAX, DWORD PTR [EAX+EBX+0x11223344]",
+    "8d841844332211"),
+    (m32, "XXXXXXXX    LEA        EAX, DWORD PTR [EDX+0x18]",
+    "8d4218"),
+    (m32, "XXXXXXXX    LEA        ECX, DWORD PTR [EAX*0x2]",
+    "8d0c00"),
 
 
     (m32, "00000000    NEG        BYTE PTR [EAX]",