diff options
| author | JB Cayrou <jb.cayrou@gmail.com> | 2016-06-29 10:57:11 +0200 |
|---|---|---|
| committer | JB Cayrou <jb.cayrou@gmail.com> | 2016-06-29 10:57:11 +0200 |
| commit | 0b30f6441d37f3c2109cba34f070555bf31582e8 (patch) | |
| tree | f71076e077d64db3013b7494cbe7c08fa9a39f5c /test/expression/simplifications.py | |
| parent | e067f41e34e9d99408be3b5194205390f05a8b2c (diff) | |
| download | focaccia-miasm-0b30f6441d37f3c2109cba34f070555bf31582e8.tar.gz focaccia-miasm-0b30f6441d37f3c2109cba34f070555bf31582e8.zip | |
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 acef0904..1b0c3d6c 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), |