diff options
| author | Ajax <commial@gmail.com> | 2015-11-12 15:47:41 +0100 |
|---|---|---|
| committer | Ajax <commial@gmail.com> | 2015-11-12 15:47:41 +0100 |
| commit | e56af8002351fbe562a08ba553b7a447f8d99319 (patch) | |
| tree | 0e44a9bc93caedfd43190a3012904fc6e5960e86 /test/expression/simplifications.py | |
| parent | c57cb79f9adb570946f02ce96930ee686ad65734 (diff) | |
| download | miasm-e56af8002351fbe562a08ba553b7a447f8d99319.tar.gz miasm-e56af8002351fbe562a08ba553b7a447f8d99319.zip | |
Simplification: add regression test for '>>>', '<<<'
Diffstat (limited to 'test/expression/simplifications.py')
| -rw-r--r-- | test/expression/simplifications.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/expression/simplifications.py b/test/expression/simplifications.py index 12d8f958..60609df4 100644 --- a/test/expression/simplifications.py +++ b/test/expression/simplifications.py @@ -60,7 +60,10 @@ to_test = [(ExprInt32(1) - ExprInt32(1), ExprInt32(0)), ExprOp('<<<', a, (b-c))), (ExprOp('>>>', ExprOp('<<<', a, b), b), a), - + (ExprOp(">>>", ExprInt16(0x1000), ExprInt16(0x11)), + ExprInt16(0x800)), + (ExprOp("<<<", ExprInt16(0x1000), ExprInt16(0x11)), + ExprInt16(0x2000)), (ExprOp('>>>', ExprOp('<<<', a, ExprInt32(10)), ExprInt32(2)), ExprOp('<<<', a, ExprInt32(8))), |