Browse Source

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

git-svn-id: branches/z80@44534 -
nickysn 5 years ago
parent
commit
8ceee70912
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/z80/rgcpu.pas

+ 1 - 1
compiler/z80/rgcpu.pas

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