about summary refs log tree commit diff stats
path: root/test/expression/simplifications.py
diff options
context:
space:
mode:
authorAjax <commial@gmail.com>2015-11-13 17:44:17 +0100
committerAjax <commial@gmail.com>2015-11-16 10:00:03 +0100
commit55a81cc899599ae24a4c5322a6d812a24e28a292 (patch)
tree1ff49eb5b7fd59fcdbcd6602ba72764566113884 /test/expression/simplifications.py
parent84dd8d451611937b004fd9f8c992e0688ba0828b (diff)
downloadmiasm-55a81cc899599ae24a4c5322a6d812a24e28a292.tar.gz
miasm-55a81cc899599ae24a4c5322a6d812a24e28a292.zip
ModInt: mimic C modulo instead of Python rounded one
Diffstat (limited to 'test/expression/simplifications.py')
-rw-r--r--test/expression/simplifications.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/expression/simplifications.py b/test/expression/simplifications.py
index a490c0f8..acef0904 100644
--- a/test/expression/simplifications.py
+++ b/test/expression/simplifications.py
@@ -317,6 +317,9 @@ to_test = [(ExprInt32(1) - ExprInt32(1), ExprInt32(0)),
      ExprInt32(0x891A2B3C)),
     (ExprOp("idiv", ExprInt16(0x0123), ExprInt16(0xfffb))[:8],
      ExprInt8(0xc6)),
+    (ExprOp("imod", ExprInt16(0x0123), ExprInt16(0xfffb))[:8],
+     ExprInt8(0x01)),
+
 ]
 
 for e, e_check in to_test[:]: