* do not use 16 Bit mul helper on avr, the code generator generates

muls and adds. For simple cases this might be cause longer code than a call to a well crafted assembler helper
  but inlining the muls/adds makes register allocation more flexible

git-svn-id: trunk@30739 -
This commit is contained in:
florian 2015-04-27 20:51:32 +00:00
parent e56d8d1c96
commit cfa68be55b

View File

@ -3145,7 +3145,8 @@ implementation
else
begin
{$ifdef cpuneedsmulhelper}
if (nodetype=muln) and not(torddef(resultdef).ordtype in [u8bit,s8bit{$ifdef cpu16bitalu},u16bit,s16bit{$endif}]) then
if (nodetype=muln) and not(torddef(resultdef).ordtype in [u8bit,s8bit
{$if defined(cpu16bitalu) or defined(avr)},u16bit,s16bit{$endif}]) then
begin
result := nil;