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 -
This commit is contained in:
Károly Balogh 2013-10-13 21:36:24 +00:00
parent 1be7ec1dcd
commit 74af6d0dab

View File

@ -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);