浏览代码

m68k: also allow TST from before Sxx instructions with explicit .b size to be optimized away

Karoly Balogh 1 年之前
父节点
当前提交
d9c786fee6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/m68k/aoptcpu.pas

+ 1 - 1
compiler/m68k/aoptcpu.pas

@@ -231,7 +231,7 @@ unit aoptcpu;
         MatchInstruction(next,A_TST,[taicpu(p).opsize]) and
         MatchOperand(taicpu(p).oper[1]^,taicpu(next).oper[0]^) 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
         begin
           opstr:=opname(p);