about summary refs log tree commit diff stats
path: root/test/expression/simplifications.py
diff options
context:
space:
mode:
authorserpilliere <serpilliere@users.noreply.github.com>2018-02-12 19:17:00 +0100
committerGitHub <noreply@github.com>2018-02-12 19:17:00 +0100
commitb0e9f5da9b4546a22169882e656bf2776eab9754 (patch)
tree275aefe0cbdb2295052cd4316e51a64061c32c62 /test/expression/simplifications.py
parent9906ad3504a4bc6c6a301a1b4b7b3c16e2a09ab9 (diff)
parent5047f98e5d34784387b73849b4cb3eaae0a26c16 (diff)
downloadfocaccia-miasm-b0e9f5da9b4546a22169882e656bf2776eab9754.tar.gz
focaccia-miasm-b0e9f5da9b4546a22169882e656bf2776eab9754.zip
Merge pull request #677 from GAJaloyan/patch-1
Changing index from 1 to -1.
Diffstat (limited to 'test/expression/simplifications.py')
-rw-r--r--test/expression/simplifications.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/expression/simplifications.py b/test/expression/simplifications.py
index 1e8e73ba..b4f5b783 100644
--- a/test/expression/simplifications.py
+++ b/test/expression/simplifications.py
@@ -134,6 +134,10 @@ to_test = [(ExprInt(1, 32) - ExprInt(1, 32), ExprInt(0, 32)),
     (ExprOp('*', a, b, c, ExprInt(0x12, 32))[0:17],
      ExprOp(
      '*', a[0:17], b[0:17], c[0:17], ExprInt(0x12, 17))),
+    (ExprOp('*', a, ExprInt(0x0, 32)),
+     ExprInt(0x0, 32)),
+    (ExprOp('&', a, ExprInt(0x0, 32)),
+     ExprInt(0x0, 32)),
     (ExprOp('*', a, ExprInt(0xffffffff, 32)),
      -a),
     (ExprOp('*', -a, -b, c, ExprInt(0x12, 32)),