diff options
| author | serpilliere <serpilliere@users.noreply.github.com> | 2016-07-03 20:36:06 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-07-03 20:36:06 +0200 |
| commit | 9165fa1768814f251fe72884f9ffeb1cb2454b94 (patch) | |
| tree | 93e31ef92089dee04b23e2bb3e275f96b4507206 /test/expression/simplifications.py | |
| parent | a22ba6e7166f0a30ed0a0e502e7e876127b8c218 (diff) | |
| parent | 0b30f6441d37f3c2109cba34f070555bf31582e8 (diff) | |
| download | miasm-9165fa1768814f251fe72884f9ffeb1cb2454b94.tar.gz miasm-9165fa1768814f251fe72884f9ffeb1cb2454b94.zip | |
Merge pull request #389 from jbcayrou/pow_op
Add ** (pow) operator
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 a4592e9d..99cc7c35 100644 --- a/test/expression/simplifications.py +++ b/test/expression/simplifications.py @@ -144,6 +144,8 @@ to_test = [(ExprInt32(1) - ExprInt32(1), ExprInt32(0)), ExprOp('*', a, b, c, ExprInt32(0x12))), (ExprOp('*', -a, -b, -c, ExprInt32(0x12)), - ExprOp('*', a, b, c, ExprInt32(0x12))), + (ExprOp('**', ExprInt32(2), ExprInt32(8)), ExprInt32(0x100)), + (ExprInt32(2)**ExprInt32(8), ExprInt32(256)), (a | ExprInt32(0xffffffff), ExprInt32(0xffffffff)), (ExprCond(a, ExprInt32(1), ExprInt32(2)) * ExprInt32(4), |