浏览代码

* arm*: fix SxtbAndImm2Sxtb (now SxtbAndImm2Uxtb) optimization as proposed by Pierre and Gareth

git-svn-id: trunk@48167 -
florian 4 年之前
父节点
当前提交
14ddc59edb
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      compiler/armgen/aoptarm.pas

+ 2 - 2
compiler/armgen/aoptarm.pas

@@ -902,8 +902,8 @@ Implementation
         { reg1 might not be modified inbetween }
         not(RegModifiedBetween(taicpu(p).oper[1]^.reg,p,hp1)) then
         begin
-          DebugMsg('Peephole SxtbAndImm2Sxtb done', p);
-          taicpu(hp1).opcode:=A_SXTB;
+          DebugMsg('Peephole SxtbAndImm2Uxtb done', p);
+          taicpu(hp1).opcode:=A_UXTB;
           taicpu(hp1).ops:=2;
           taicpu(hp1).loadReg(1,taicpu(p).oper[1]^.reg);
           GetNextInstruction(p,hp2);