瀏覽代碼

Apply DataMov2Data to MLA and MLS too. Those have over 4 operands.

git-svn-id: trunk@26912 -
Jeppe Johansen 11 年之前
父節點
當前提交
95589fb1e2
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      compiler/arm/aoptcpu.pas

+ 2 - 1
compiler/arm/aoptcpu.pas

@@ -1421,6 +1421,7 @@ Implementation
                 A_EOR,
                 A_ORR,
                 A_MLA,
+                A_MLS,
                 A_MUL:
                   begin
                         {
@@ -1663,7 +1664,7 @@ Implementation
                       add reg2, ...
                     }
                     if GetNextInstructionUsingReg(p, hp1, taicpu(p).oper[0]^.reg) and
-                       (taicpu(p).ops=3) and
+                       (taicpu(p).ops>=3) and
                        RemoveSuperfluousMove(p, hp1, 'DataMov2Data') then
                       Result:=true;