diff options
| author | serpilliere <serpilliere@users.noreply.github.com> | 2018-05-15 11:19:41 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-05-15 11:19:41 +0200 |
| commit | 4dae0d5df51165d2c535f0812761dc6bdadfe88e (patch) | |
| tree | 392c861b580d89bb8be80856fd8403d1d7c0e2bf /test/expression/simplifications.py | |
| parent | 833524bb7291e82613afba2184b3c0c9801445f5 (diff) | |
| parent | de4295331794e81937a5c4073c37808ec63beaa4 (diff) | |
| download | miasm-4dae0d5df51165d2c535f0812761dc6bdadfe88e.tar.gz miasm-4dae0d5df51165d2c535f0812761dc6bdadfe88e.zip | |
Merge pull request #740 from commial/refactor/bsr-bsf
Refactor/bsr bsf
Diffstat (limited to 'test/expression/simplifications.py')
| -rw-r--r-- | test/expression/simplifications.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/expression/simplifications.py b/test/expression/simplifications.py index 3e2e5177..a4e839cf 100644 --- a/test/expression/simplifications.py +++ b/test/expression/simplifications.py @@ -395,6 +395,15 @@ to_test = [(ExprInt(1, 32) - ExprInt(1, 32), ExprInt(0, 32)), ExprInt(0xc6, 8)), (ExprOp("imod", ExprInt(0x0123, 16), ExprInt(0xfffb, 16))[:8], ExprInt(0x01, 8)), + (ExprOp("cnttrailzeros", ExprInt(0x2, 32)), + ExprInt(0x1, 32)), + (ExprOp("cnttrailzeros", ExprInt(0x0, 32)), + ExprInt(0x20, 32)), + (ExprOp("cntleadzeros", ExprInt(0x2, 32)), + ExprInt(30, 32)), + (ExprOp("cntleadzeros", ExprInt(0x0, 32)), + ExprInt(0x20, 32)), + (ExprCompose(ExprInt(0x0123, 16), ExprMem(a + ExprInt(0x40, a.size), 16), ExprMem(a + ExprInt(0x42, a.size), 16), ExprInt(0x0321, 16)), |