Browse Source

enabled hardware mul reg, reg codepath for ColdFire too, accelerates tfloattostr test (thus some of the SoftFPU code) by a magnitude...

git-svn-id: trunk@25770 -
Károly Balogh 12 years ago
parent
commit
74af6d0dab
1 changed files with 3 additions and 3 deletions
  1. 3 3
      compiler/m68k/cgcpu.pas

+ 3 - 3
compiler/m68k/cgcpu.pas

@@ -1197,15 +1197,15 @@ unit cgcpu;
           OP_MUL,
           OP_IMUL:
               begin
-                if current_settings.cputype <> cpu_mc68020 then
+                if (current_settings.cputype <> cpu_mc68020) and
+                   (not (current_settings.cputype in cpu_coldfire)) then
                   if op = OP_MUL then
                     call_rtl_mul_reg_reg(list,reg1,reg2,'fpc_mul_dword')
                   else
                     call_rtl_mul_reg_reg(list,reg1,reg2,'fpc_mul_longint')
                 else
                   begin
-                    { 68020+ codepath, probably could be improved to
-                      include more CPUs... (KB) }
+                    { 68020+ and ColdFire codepath, probably could be improved }
                     hreg1 := force_to_dataregister(list, size, reg1);
                     hreg2 := force_to_dataregister(list, size, reg2);