소스 검색

m68k: include CMPI in the CMP to TST optimization

git-svn-id: trunk@32842 -
Károly Balogh 9 년 전
부모
커밋
2b3bd71735
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      compiler/m68k/aoptcpu.pas

+ 1 - 1
compiler/m68k/aoptcpu.pas

@@ -124,7 +124,7 @@ unit aoptcpu;
                     result:=true;
                   end;
               { CMP #0,<ea> equals to TST <ea>, just shorter and TST is more flexible anyway }
-              A_CMP:
+              A_CMP,A_CMPI:
                 if (taicpu(p).oper[0]^.typ = top_const) and
                    (taicpu(p).oper[0]^.val = 0) then
                   begin