about summary refs log tree commit diff stats
path: root/example/expression
diff options
context:
space:
mode:
authorserpilliere <devnull@localhost>2012-07-04 09:44:23 +0200
committerserpilliere <devnull@localhost>2012-07-04 09:44:23 +0200
commitde1f8324bee530930d75f0053d5fabbb0cf413d2 (patch)
tree734a0d872b6def1f6d5e57951d45efbafb641cee /example/expression
parent807d1e75a965aed44485956f54329d2082554363 (diff)
downloadmiasm-de1f8324bee530930d75f0053d5fabbb0cf413d2.tar.gz
miasm-de1f8324bee530930d75f0053d5fabbb0cf413d2.zip
expression_helper: fix exprcompose simplification
Diffstat (limited to 'example/expression')
-rw-r--r--example/expression/manip_expression6.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/example/expression/manip_expression6.py b/example/expression/manip_expression6.py
index 024de0f4..180022e1 100644
--- a/example/expression/manip_expression6.py
+++ b/example/expression/manip_expression6.py
@@ -102,6 +102,11 @@ to_test = [(ExprInt32(5)+c+a+b-a+ExprInt32(1)-ExprInt32(5)),
            ExprCond(ExprInt32(0), b, a),
 
            ExprInt32(0x80000000)[31:32],
+           ExprCompose([(ExprInt16(0x1337)[:8], 0, 8),(ExprInt16(0x1337)[8:16], 8, 16)]),
+
+           ExprCompose([(ExprInt32(0x1337beef)[8:16], 8, 16),
+                        (ExprInt32(0x1337beef)[:8], 0, 8),
+                        (ExprInt32(0x1337beef)[16:32], 16, 32)]),
 
 
            ]