about summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
authorserpilliere <serpilliere@users.noreply.github.com>2019-11-20 08:10:33 +0100
committerGitHub <noreply@github.com>2019-11-20 08:10:33 +0100
commit7c3b1b4c0ab94c9746b2239e4944e0f203ea8d03 (patch)
treec8399763059810fe772c994f05590ba392e5382a /test
parent614fd0ea05b6e7aa9004bc14a7038696e140bc77 (diff)
parentac3a3e8a55c87e2da3b776d82e2b43687a8e3d3f (diff)
downloadmiasm-7c3b1b4c0ab94c9746b2239e4944e0f203ea8d03.tar.gz
miasm-7c3b1b4c0ab94c9746b2239e4944e0f203ea8d03.zip
Merge pull request #1096 from serpilliere/updt_asmblock_api
Updt asmblock api
Diffstat (limited to 'test')
-rw-r--r--test/analysis/unssa.py1
-rw-r--r--test/expression/simplifications.py7
2 files changed, 8 insertions, 0 deletions
diff --git a/test/analysis/unssa.py b/test/analysis/unssa.py
index 55ceac9e..2bfe9254 100644
--- a/test/analysis/unssa.py
+++ b/test/analysis/unssa.py
@@ -82,6 +82,7 @@ class IRATest(ira):
         super(IRATest, self).__init__(arch, 32, loc_db)
         self.IRDst = IRDst
         self.ret_reg = r
+        self.addrsize = 32
 
     def get_out_regs(self, xx):
         out = set()
diff --git a/test/expression/simplifications.py b/test/expression/simplifications.py
index e0b666da..de059075 100644
--- a/test/expression/simplifications.py
+++ b/test/expression/simplifications.py
@@ -515,6 +515,13 @@ to_test = [
         ExprOp(TOK_EQUAL, a , i3)
     ),
 
+
+    (
+        ExprOp(TOK_EQUAL, ExprOp("^", a, b, i2), i1),
+        ExprOp(TOK_EQUAL, a^b , i3)
+    ),
+
+
     (ExprOp(TOK_INF_SIGNED, i1, i2), ExprInt(1, 1)),
     (ExprOp(TOK_INF_UNSIGNED, i1, i2), ExprInt(1, 1)),
     (ExprOp(TOK_INF_EQUAL_SIGNED, i1, i2), ExprInt(1, 1)),