From f7a3aa042192a38ecbd37842a8808783f4b15dba Mon Sep 17 00:00:00 2001 From: Ajax Date: Tue, 10 Nov 2015 17:48:00 +0100 Subject: x86/sem: mem2double must not be called on float regs --- miasm2/arch/x86/sem.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'miasm2/arch/x86/sem.py') diff --git a/miasm2/arch/x86/sem.py b/miasm2/arch/x86/sem.py index d74af13d..49833b1c 100644 --- a/miasm2/arch/x86/sem.py +++ b/miasm2/arch/x86/sem.py @@ -1767,11 +1767,10 @@ def fcom(ir, instr, a=None, b=None): if a is None and b is None: a, b = float_st0, float_st1 elif b is None: - b = a + b = mem2double(a) a = float_st0 e = [] - b = mem2double(b) e.append(m2_expr.ExprAff(float_c0, m2_expr.ExprOp('fcom_c0', a, b))) e.append(m2_expr.ExprAff(float_c1, m2_expr.ExprOp('fcom_c1', a, b))) -- cgit 1.4.1