mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-11-04 14:39:36 +01:00 
			
		
		
		
	* 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:
		
							parent
							
								
									e56d8d1c96
								
							
						
					
					
						commit
						cfa68be55b
					
				@ -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;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user