about summary refs log tree commit diff stats
path: root/test/expression/simplifications.py
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2015-07-23 08:38:40 +0200
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2015-07-23 08:38:40 +0200
commit310cc708474650a567eb099386373638b67daad7 (patch)
treead7e60389b03b532b9c8eb44d484470a87b45a5f /test/expression/simplifications.py
parente9be7c7628cd47acfa3793956c667c575a8d073e (diff)
downloadmiasm-310cc708474650a567eb099386373638b67daad7.tar.gz
miasm-310cc708474650a567eb099386373638b67daad7.zip
Test/Expression: add regression test for shift/slice
Diffstat (limited to 'test/expression/simplifications.py')
-rw-r--r--test/expression/simplifications.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/expression/simplifications.py b/test/expression/simplifications.py
index df7fdceb..1f5a5c5b 100644
--- a/test/expression/simplifications.py
+++ b/test/expression/simplifications.py
@@ -256,6 +256,14 @@ to_test = [(ExprInt32(1) - ExprInt32(1), ExprInt32(0)),
        ),
     (ExprCompose([(a[:16], 0, 16), (b[:16], 16, 32)])[8:32],
      ExprCompose([(a[8:16], 0, 8), (b[:16], 8, 24)])),
+    ((a >> ExprInt32(16))[:16],
+     a[16:32]),
+    ((a >> ExprInt32(16))[8:16],
+     a[24:32]),
+    ((a << ExprInt32(16))[16:32],
+     a[:16]),
+    ((a << ExprInt32(16))[24:32],
+     a[8:16]),
 
 ]