diff options
| author | Camille Mougey <commial@gmail.com> | 2018-09-28 09:30:23 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-09-28 09:30:23 +0200 |
| commit | 9c8596646ba6150694deb984f25aaad73d2c7125 (patch) | |
| tree | 35e52073cea394d3e66dfa89a53d81987869abe9 /miasm2/arch/arm/sem.py | |
| parent | a5ab3c338e09da5c3e2fe871f1f13e6e37464fa1 (diff) | |
| parent | 846d316efab8b8b654eee58b952cdf1ba2d3eb42 (diff) | |
| download | miasm-9c8596646ba6150694deb984f25aaad73d2c7125.tar.gz miasm-9c8596646ba6150694deb984f25aaad73d2c7125.zip | |
Merge pull request #852 from serpilliere/fix_lgtm_2
Code cleaning: lgtm.com
Diffstat (limited to 'miasm2/arch/arm/sem.py')
| -rw-r--r-- | miasm2/arch/arm/sem.py | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/miasm2/arch/arm/sem.py b/miasm2/arch/arm/sem.py index 2cfc2a17..600ad586 100644 --- a/miasm2/arch/arm/sem.py +++ b/miasm2/arch/arm/sem.py @@ -283,7 +283,8 @@ def rsb(ir, instr, a, b, c=None): e = [] if c is None: b, c = a, b - r = c - b + arg1, arg2 = c, b + r = arg1 - arg2 e.append(ExprAff(a, r)) dst = get_dst(a) if dst is not None: @@ -297,10 +298,8 @@ def rsbs(ir, instr, a, b, c=None): b, c = a, b arg1, arg2 = c, b r = arg1 - arg2 - e += update_flag_arith_sub_zn(arg1, arg2) e += update_flag_arith_sub_co(arg1, arg2) - e.append(ExprAff(a, r)) dst = get_dst(a) if dst is not None: @@ -398,11 +397,8 @@ def l_cmp(ir, instr, a, b, c=None): if c is None: b, c = a, b arg1, arg2 = b, c - r = b - c - e += update_flag_arith_sub_zn(arg1, arg2) e += update_flag_arith_sub_co(arg1, arg2) - return e, [] @@ -411,11 +407,8 @@ def cmn(ir, instr, a, b, c=None): if c is None: b, c = a, b arg1, arg2 = b, c - r = b + c - e += update_flag_arith_add_zn(arg1, arg2) e += update_flag_arith_add_co(arg1, arg2) - return e, [] @@ -448,7 +441,7 @@ def orrs(ir, instr, a, b, c=None): if c is None: b, c = a, b arg1, arg2 = b, c - r = b | c + r = arg1 | arg2 e += [ExprAff(zf, ExprOp('FLAG_EQ', r))] e += update_flag_nf(r) |