diff options
| author | Ajax <commial@gmail.com> | 2015-11-13 17:43:36 +0100 |
|---|---|---|
| committer | Ajax <commial@gmail.com> | 2015-11-16 09:22:29 +0100 |
| commit | 84dd8d451611937b004fd9f8c992e0688ba0828b (patch) | |
| tree | cd2f86464dc23317b58b8aedd56452c533f88f07 /test/expression/simplifications.py | |
| parent | c488c7780ada00daa5b1ca8a27a585abfacd2905 (diff) | |
| download | miasm-84dd8d451611937b004fd9f8c992e0688ba0828b.tar.gz miasm-84dd8d451611937b004fd9f8c992e0688ba0828b.zip | |
ModInt: mimic C division instead of Python rounded one
Diffstat (limited to 'test/expression/simplifications.py')
| -rw-r--r-- | test/expression/simplifications.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/expression/simplifications.py b/test/expression/simplifications.py index 7b68c1bf..a490c0f8 100644 --- a/test/expression/simplifications.py +++ b/test/expression/simplifications.py @@ -315,6 +315,8 @@ to_test = [(ExprInt32(1) - ExprInt32(1), ExprInt32(0)), ExprInt32(0x91A2B3C)), (ExprOp(">>>c_rez", icustom, i1, i1), ExprInt32(0x891A2B3C)), + (ExprOp("idiv", ExprInt16(0x0123), ExprInt16(0xfffb))[:8], + ExprInt8(0xc6)), ] for e, e_check in to_test[:]: |