diff options
| author | w4kfu <gw4kfu@gmail.com> | 2018-11-14 16:43:24 -0500 |
|---|---|---|
| committer | w4kfu <gw4kfu@gmail.com> | 2018-11-15 07:44:30 -0500 |
| commit | 1e5af6d2462d91160172fd3a4b7e38709f124203 (patch) | |
| tree | d70a81999c38dce5523a70ff042bb72d0002c0b8 | |
| parent | 599ac301037a8509cbeb3aa88a19dd314db8e683 (diff) | |
| download | miasm-1e5af6d2462d91160172fd3a4b7e38709f124203.tar.gz miasm-1e5af6d2462d91160172fd3a4b7e38709f124203.zip | |
X86 SEM CMOV : add assignation
Diffstat (limited to '')
| -rw-r--r-- | miasm2/arch/x86/sem.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/miasm2/arch/x86/sem.py b/miasm2/arch/x86/sem.py index 565f7571..63b68e39 100644 --- a/miasm2/arch/x86/sem.py +++ b/miasm2/arch/x86/sem.py @@ -398,7 +398,7 @@ def gen_cmov(ir, instr, cond, dst, src, mov_if): dstA, dstB = loc_do_expr, loc_skip_expr else: dstA, dstB = loc_skip_expr, loc_do_expr - e = [] + e = [m2_expr.ExprAssign(dst, dst)] e_do, extra_irs = mov(ir, instr, dst, src) e_do.append(m2_expr.ExprAssign(ir.IRDst, loc_skip_expr)) e.append(m2_expr.ExprAssign(ir.IRDst, m2_expr.ExprCond(cond, dstA, dstB))) |