From 4e677ff826933d9de2a82539327c0d4bbe856342 Mon Sep 17 00:00:00 2001 From: Ajax Date: Tue, 10 Nov 2015 14:50:29 +0100 Subject: x86/sem: fpatan should first decrement dst float (parrallel) --- miasm2/arch/x86/sem.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, [] -- cgit 1.4.1