mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-05 05:58:02 +02:00
* fix capabilites check
This commit is contained in:
parent
d60300e807
commit
1ed9054bb9
@ -1326,7 +1326,7 @@ unit cgcpu;
|
||||
end;
|
||||
|
||||
{ can we take advantage of adiw/sbiw? }
|
||||
if (current_settings.cputype>=cpu_avr2) and not(assigned(ref.symbol)) and (ref.offset<>0) and (ref.offset>=-63) and (ref.offset<=63) and
|
||||
if (CPUAVR_HAS_ADIW in cpu_capabilities[current_settings.cputype]) and not(assigned(ref.symbol)) and (ref.offset<>0) and (ref.offset>=-63) and (ref.offset<=63) and
|
||||
((tmpreg=NR_R24) or (tmpreg=NR_R26) or (tmpreg=NR_R28) or (tmpreg=NR_R30)) and (ref.base<>NR_NO) then
|
||||
begin
|
||||
maybegetcpuregister(list,tmpreg);
|
||||
|
Loading…
Reference in New Issue
Block a user