about summary refs log tree commit diff stats
path: root/miasm2/arch/arm/sem.py
diff options
context:
space:
mode:
authorserpilliere <fabrice.desclaux@cea.fr>2016-09-11 00:13:30 +0200
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2016-09-12 10:28:48 +0200
commit9164b599b87d43d64e056726038bc99a69bbf40d (patch)
tree2eb0c856899d4feb16ccbaf86c58805ddd7fd059 /miasm2/arch/arm/sem.py
parent25da9186cd3240a6d9f38b692d3a1e0c6589eead (diff)
downloadmiasm-9164b599b87d43d64e056726038bc99a69bbf40d.tar.gz
miasm-9164b599b87d43d64e056726038bc99a69bbf40d.zip
Arm: add clz/uxtab
Diffstat (limited to 'miasm2/arch/arm/sem.py')
-rw-r--r--miasm2/arch/arm/sem.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/miasm2/arch/arm/sem.py b/miasm2/arch/arm/sem.py
index 5bd4db24..be44061e 100644
--- a/miasm2/arch/arm/sem.py
+++ b/miasm2/arch/arm/sem.py
@@ -937,6 +937,17 @@ def pld(ir, instr, a):
     return []
 
 
+def clz(ir, instr, a, b):
+    e = []
+    e.append(ExprAff(a, ExprOp('clz', b)))
+    return e
+
+def uxtab(ir, instr, a, b, c):
+    e = []
+    e.append(ExprAff(a, b + (c & ExprInt32(0xff))))
+    return e
+
+
 
 COND_EQ = 0
 COND_NE = 1
@@ -1080,6 +1091,8 @@ mnemo_condm0 = {'add': add,
                 'ubfx': ubfx,
                 'bfc': bfc,
                 'rev': rev,
+                'clz': clz,
+                'uxtab': uxtab,
                 }
 
 mnemo_condm1 = {'adds': add,