Browse Source

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

git-svn-id: trunk@26912 -
Jeppe Johansen 11 years ago
parent
commit
95589fb1e2
1 changed files with 2 additions and 1 deletions
  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;