diff options
| author | Ajax <commial@gmail.com> | 2015-11-10 14:50:29 +0100 |
|---|---|---|
| committer | Ajax <commial@gmail.com> | 2015-11-10 14:50:29 +0100 |
| commit | 4e677ff826933d9de2a82539327c0d4bbe856342 (patch) | |
| tree | 4820017b8fdcab67aac887dfa52e84ac3ed6695c | |
| parent | 8721d6f3d82a924e52cd41025b4bbbff823c50e6 (diff) | |
| download | miasm-4e677ff826933d9de2a82539327c0d4bbe856342.tar.gz miasm-4e677ff826933d9de2a82539327c0d4bbe856342.zip | |
x86/sem: fpatan should first decrement dst float (parrallel)
| -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 c39617f6..a51848a9 100644 --- a/miasm2/arch/x86/sem.py +++ b/miasm2/arch/x86/sem.py @@ -2121,7 +2121,8 @@ def fisubr(ir, instr, a, b=None): def fpatan(ir, instr): e = [] a = float_st1 - e.append(m2_expr.ExprAff(a, m2_expr.ExprOp('fpatan', float_st0, float_st1))) + e.append(m2_expr.ExprAff(float_prev(a), + m2_expr.ExprOp('fpatan', float_st0, float_st1))) e += set_float_cs_eip(instr) e += float_pop(a) return e, [] |