From 9f587625e748b33630f7c682a564dbc5ba6dac5e Mon Sep 17 00:00:00 2001 From: florian Date: Sat, 2 May 2015 17:20:20 +0000 Subject: [PATCH] + handle not and neg in isFoldableArithOp as well git-svn-id: trunk@30767 - --- compiler/i386/popt386.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/i386/popt386.pas b/compiler/i386/popt386.pas index 0fcc7b3a45..6086a61906 100644 --- a/compiler/i386/popt386.pas +++ b/compiler/i386/popt386.pas @@ -58,7 +58,7 @@ begin (taicpu(hp1).oper[0]^.reg <> reg))) and (taicpu(hp1).oper[1]^.typ = top_reg) and (taicpu(hp1).oper[1]^.reg = reg); - A_INC,A_DEC: + A_INC,A_DEC,A_NEG,A_NOT: isFoldableArithOp := (taicpu(hp1).oper[0]^.typ = top_reg) and (taicpu(hp1).oper[0]^.reg = reg); @@ -2282,7 +2282,7 @@ begin { to add/sub/or/... reg2/$const, (ref) } begin case taicpu(hp1).opcode of - A_INC,A_DEC: + A_INC,A_DEC,A_NOT,A_NEG: taicpu(hp1).loadRef(0,taicpu(p).oper[0]^.ref^); A_LEA: begin