mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-26 11:49:15 +02:00
m68k: also allow TST from before Sxx instructions with explicit .b size to be optimized away
This commit is contained in:
parent
11246aa5b4
commit
d9c786fee6
@ -231,7 +231,7 @@ unit aoptcpu;
|
|||||||
MatchInstruction(next,A_TST,[taicpu(p).opsize]) and
|
MatchInstruction(next,A_TST,[taicpu(p).opsize]) and
|
||||||
MatchOperand(taicpu(p).oper[1]^,taicpu(next).oper[0]^) and
|
MatchOperand(taicpu(p).oper[1]^,taicpu(next).oper[0]^) and
|
||||||
GetNextInstruction(next,next2) and
|
GetNextInstruction(next,next2) and
|
||||||
MatchInstruction(next2,[A_BXX,A_SXX],[S_NO]) and
|
MatchInstruction(next2,[A_BXX,A_SXX],[S_NO,S_B]) and
|
||||||
(taicpu(next2).condition in [C_NE,C_EQ,C_PL,C_MI]) then
|
(taicpu(next2).condition in [C_NE,C_EQ,C_PL,C_MI]) then
|
||||||
begin
|
begin
|
||||||
opstr:=opname(p);
|
opstr:=opname(p);
|
||||||
|
Loading…
Reference in New Issue
Block a user