瀏覽代碼

* fixed offsets used by stmw/lmw

git-svn-id: trunk@2084 -
Jonas Maebe 19 年之前
父節點
當前提交
6c30925e04
共有 1 個文件被更改,包括 2 次插入2 次删除
  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 }
                 (firstregint <= RS_R29)) then
               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));
               end
             else
@@ -1296,7 +1296,7 @@ const
                 { with RS_R30 it's also already smaller, but too big a speed trade-off to make }
                 (firstregint <= RS_R29)) then
               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));
               end
             else