mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-04 18:50:37 +02:00
+ handle not and neg in isFoldableArithOp as well
git-svn-id: trunk@30767 -
This commit is contained in:
parent
b222d0b663
commit
9f587625e7
@ -58,7 +58,7 @@ begin
|
|||||||
(taicpu(hp1).oper[0]^.reg <> reg))) and
|
(taicpu(hp1).oper[0]^.reg <> reg))) and
|
||||||
(taicpu(hp1).oper[1]^.typ = top_reg) and
|
(taicpu(hp1).oper[1]^.typ = top_reg) and
|
||||||
(taicpu(hp1).oper[1]^.reg = reg);
|
(taicpu(hp1).oper[1]^.reg = reg);
|
||||||
A_INC,A_DEC:
|
A_INC,A_DEC,A_NEG,A_NOT:
|
||||||
isFoldableArithOp :=
|
isFoldableArithOp :=
|
||||||
(taicpu(hp1).oper[0]^.typ = top_reg) and
|
(taicpu(hp1).oper[0]^.typ = top_reg) and
|
||||||
(taicpu(hp1).oper[0]^.reg = reg);
|
(taicpu(hp1).oper[0]^.reg = reg);
|
||||||
@ -2282,7 +2282,7 @@ begin
|
|||||||
{ to add/sub/or/... reg2/$const, (ref) }
|
{ to add/sub/or/... reg2/$const, (ref) }
|
||||||
begin
|
begin
|
||||||
case taicpu(hp1).opcode of
|
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^);
|
taicpu(hp1).loadRef(0,taicpu(p).oper[0]^.ref^);
|
||||||
A_LEA:
|
A_LEA:
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user