about summary refs log tree commit diff stats
path: root/test/arch/x86/arch.py
diff options
context:
space:
mode:
authorserpilliere <fabrice.desclaux@cea.fr>2015-03-14 16:59:19 +0100
committerserpilliere <fabrice.desclaux@cea.fr>2015-03-14 17:01:12 +0100
commitfce912bce03b5e36b68791557fc2460a94e86cfe (patch)
tree48c1cb6c4115ee772b73db9aa9e01ed2be3d7d82 /test/arch/x86/arch.py
parentbeca56ef3c51e11880cafed28be75a704c795b89 (diff)
downloadmiasm-fce912bce03b5e36b68791557fc2460a94e86cfe.tar.gz
miasm-fce912bce03b5e36b68791557fc2460a94e86cfe.zip
X86/Test: add regression test on binary output for instruction with prefix
Diffstat (limited to 'test/arch/x86/arch.py')
-rw-r--r--test/arch/x86/arch.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/arch/x86/arch.py b/test/arch/x86/arch.py
index 7ec7b8c8..884d545b 100644
--- a/test/arch/x86/arch.py
+++ b/test/arch/x86/arch.py
@@ -1938,3 +1938,8 @@ import cProfile
 # cProfile.run(r'mn_x86.dis("\x81\x54\x18\xfe\x44\x33\x22\x11", m32)')
 cProfile.run('profile_dis(o)')
 # profile_dis(o)
+
+# Test instruction representation with prefix
+instr_bytes = '\x65\xc7\x00\x09\x00\x00\x00'
+inst = mn_x86.dis(instr_bytes, 32, 0)
+assert(inst.b == instr_bytes)