Ver Fonte

* do not allocate unnecessarily an extra pair of registers when multiplying int64s on arm

git-svn-id: trunk@26672 -
florian há 11 anos atrás
pai
commit
9e4c130bc4
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      compiler/arm/narmadd.pas

+ 1 - 1
compiler/arm/narmadd.pas

@@ -484,7 +484,7 @@ interface
           begin
           begin
             asmList := current_asmdata.CurrAsmList;
             asmList := current_asmdata.CurrAsmList;
             pass_left_right;
             pass_left_right;
-            force_reg_left_right(true, false);
+            force_reg_left_right(true, (left.location.loc<>LOC_CONSTANT) and (right.location.loc<>LOC_CONSTANT));
             set_result_location_reg;
             set_result_location_reg;
 
 
             { shortcuts to register64s }
             { shortcuts to register64s }