diff options
| author | Ajax <commial@gmail.com> | 2018-05-15 10:42:02 +0200 |
|---|---|---|
| committer | Ajax <commial@gmail.com> | 2018-05-15 10:42:02 +0200 |
| commit | de4295331794e81937a5c4073c37808ec63beaa4 (patch) | |
| tree | a8b2bab4f9e91ab56442ea29d525ce6d5390536c /miasm2/arch/ppc/sem.py | |
| parent | c450ece842408d2abcfc0f2ec648a4841bf0673b (diff) | |
| download | miasm-de4295331794e81937a5c4073c37808ec63beaa4.tar.gz miasm-de4295331794e81937a5c4073c37808ec63beaa4.zip | |
Op bsr/bsf are replaced by cnttrailzeros / cntleadzeros, defined in 0
Diffstat (limited to 'miasm2/arch/ppc/sem.py')
| -rw-r--r-- | miasm2/arch/ppc/sem.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/miasm2/arch/ppc/sem.py b/miasm2/arch/ppc/sem.py index 4923e3a8..741ae24b 100644 --- a/miasm2/arch/ppc/sem.py +++ b/miasm2/arch/ppc/sem.py @@ -98,9 +98,7 @@ def mn_do_and(ir, instr, ra, rs, arg2): return ret, [] def mn_do_cntlzw(ir, instr, ra, rs): - rvalue = ExprCond(rs, ExprInt(31, 32) - ExprOp('bsr', rs), ExprInt(32, 32)) - - ret = [ ExprAff(ra, rvalue) ] + ret = [ ExprAff(ra, ExprOp('cntleadzeros'), rs) ] if instr.name[-1] == '.': ret += mn_compute_flags(rvalue) |