Browse Source

* patch by J. Gareth Moreton: Minor oversight in MovAnd2Mov 3 optimisation, resolves #37442

git-svn-id: trunk@45961 -
florian 5 years ago
parent
commit
941020af1a
1 changed files with 4 additions and 1 deletions
  1. 4 1
      compiler/x86/aoptx86.pas

+ 4 - 1
compiler/x86/aoptx86.pas

@@ -5863,7 +5863,10 @@ unit aoptx86;
               begin
                 taicpu(p).loadreg(0, taicpu(p).oper[1]^.reg);
                 if taicpu(p).opsize = S_L then
-                  Include(OptsToCheck,aoc_MovAnd2Mov_3);
+                  begin
+                    Include(OptsToCheck,aoc_MovAnd2Mov_3);
+                    Result := True;
+                  end;
               end;
           end;