diff options
Diffstat (limited to 'miasm2/arch/x86/sem.py')
| -rw-r--r-- | miasm2/arch/x86/sem.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/miasm2/arch/x86/sem.py b/miasm2/arch/x86/sem.py index c14d6f97..f2cedb34 100644 --- a/miasm2/arch/x86/sem.py +++ b/miasm2/arch/x86/sem.py @@ -319,7 +319,8 @@ def xadd(ir, instr, a, b): e += update_flag_arith(c) e += update_flag_af(a, b, c) e += update_flag_add(b, a, c) - e.append(m2_expr.ExprAff(b, a)) + if a != b: + e.append(m2_expr.ExprAff(b, a)) e.append(m2_expr.ExprAff(a, c)) return e, [] |