Browse Source

* fixed offsets used by stmw/lmw

git-svn-id: trunk@2084 -
Jonas Maebe 19 years ago
parent
commit
6c30925e04
1 changed files with 2 additions and 2 deletions
  1. 2 2
      compiler/powerpc/cgcpu.pas

+ 2 - 2
compiler/powerpc/cgcpu.pas

@@ -1154,7 +1154,7 @@ const
                { with RS_R30 it's also already smaller, but too big a speed trade-off to make }
                { with RS_R30 it's also already smaller, but too big a speed trade-off to make }
                 (firstregint <= RS_R29)) then
                 (firstregint <= RS_R29)) then
               begin
               begin
-                dec(href.offset,(RS_R31-firstregint+1)*sizeof(aint));
+                dec(href.offset,(RS_R31-firstregint)*sizeof(aint));
                 list.concat(taicpu.op_reg_ref(A_STMW,newreg(R_INTREGISTER,firstregint,R_SUBNONE),href));
                 list.concat(taicpu.op_reg_ref(A_STMW,newreg(R_INTREGISTER,firstregint,R_SUBNONE),href));
               end
               end
             else
             else
@@ -1296,7 +1296,7 @@ const
                 { with RS_R30 it's also already smaller, but too big a speed trade-off to make }
                 { with RS_R30 it's also already smaller, but too big a speed trade-off to make }
                 (firstregint <= RS_R29)) then
                 (firstregint <= RS_R29)) then
               begin
               begin
-                dec(href.offset,(RS_R31-firstregint+1)*sizeof(aint));
+                dec(href.offset,(RS_R31-firstregint)*sizeof(aint));
                 list.concat(taicpu.op_reg_ref(A_LMW,newreg(R_INTREGISTER,firstregint,R_SUBNONE),href));
                 list.concat(taicpu.op_reg_ref(A_LMW,newreg(R_INTREGISTER,firstregint,R_SUBNONE),href));
               end
               end
             else
             else