* range check for spilltemp.offset in [-128..127], not [0..63] in trgcpu.do_spill_replace for Z80

git-svn-id: branches/z80@44534 -
This commit is contained in:
nickysn 2020-04-03 19:32:10 +00:00
parent 8291d24b7f
commit 8ceee70912

View File

@ -158,7 +158,7 @@ unit rgcpu;
b : byte;
begin
result:=false;
if not(spilltemp.offset in [0..63]) then
if not(spilltemp.offset in [-128..127]) then
exit;
{ Replace 'mov dst,orgreg' with 'ld dst,spilltemp'