diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2018-12-21 08:53:50 +0100 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2018-12-26 15:02:23 +0100 |
| commit | 2b6b2e32ba20c049446cc152fd195a410f804993 (patch) | |
| tree | cc4782f95e4a329389416e66325fe925f957ef19 | |
| parent | 6c3e7e2014b5719bc09d7db5bb0d853f56fe8f4e (diff) | |
| download | miasm-2b6b2e32ba20c049446cc152fd195a410f804993.tar.gz miasm-2b6b2e32ba20c049446cc152fd195a410f804993.zip | |
Aarch64: fix ccmp sem
Diffstat (limited to '')
| -rw-r--r-- | miasm2/arch/aarch64/sem.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/miasm2/arch/aarch64/sem.py b/miasm2/arch/aarch64/sem.py index 3c8db287..8451d3e9 100644 --- a/miasm2/arch/aarch64/sem.py +++ b/miasm2/arch/aarch64/sem.py @@ -430,7 +430,7 @@ def csel(arg1, arg2, arg3, arg4): def ccmp(ir, instr, arg1, arg2, arg3, arg4): e = [] - if(arg2.is_int): + if(arg2.is_int()): arg2=ExprInt(arg2.arg.arg,arg1.size) default_nf = arg3[0:1] default_zf = arg3[1:2] @@ -440,8 +440,8 @@ def ccmp(ir, instr, arg1, arg2, arg3, arg4): res = arg1 - arg2 new_nf = nf new_zf = update_flag_zf(res)[0].src - new_cf = update_flag_sub_cf(arg1, arg2).src - new_of = update_flag_sub_of(arg1, arg2).src + new_cf = update_flag_sub_cf(arg1, arg2)[0].src + new_of = update_flag_sub_of(arg1, arg2)[0].src e.append(ExprAssign(nf, ExprCond(cond_expr, new_nf, |