浏览代码

* converted tcgvecnode.update_reference_reg_mul to the high level code generator

git-svn-id: branches/wasm@48067 -
nickysn 4 年之前
父节点
当前提交
531031c135
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      compiler/ncgmem.pas

+ 4 - 4
compiler/ncgmem.pas

@@ -638,8 +638,8 @@ implementation
        begin
        begin
          if l<>1 then
          if l<>1 then
            begin
            begin
-             hreg:=cg.getaddressregister(current_asmdata.CurrAsmList);
-             cg.a_op_const_reg_reg(current_asmdata.CurrAsmList,OP_IMUL,OS_ADDR,l,maybe_const_reg,hreg);
+             hreg:=hlcg.getaddressregister(current_asmdata.CurrAsmList,voidpointertype);
+             hlcg.a_op_const_reg_reg(current_asmdata.CurrAsmList,OP_IMUL,voidpointertype,l,maybe_const_reg,hreg);
              maybe_const_reg:=hreg;
              maybe_const_reg:=hreg;
            end;
            end;
          if location.reference.base=NR_NO then
          if location.reference.base=NR_NO then
@@ -648,8 +648,8 @@ implementation
            location.reference.index:=maybe_const_reg
            location.reference.index:=maybe_const_reg
          else
          else
           begin
           begin
-            hreg:=cg.getaddressregister(current_asmdata.CurrAsmList);
-            cg.a_loadaddr_ref_reg(current_asmdata.CurrAsmList,location.reference,hreg);
+            hreg:=hlcg.getaddressregister(current_asmdata.CurrAsmList,voidpointertype);
+            hlcg.a_loadaddr_ref_reg(current_asmdata.CurrAsmList,resultdef,voidpointertype,location.reference,hreg);
             reference_reset_base(location.reference,hreg,0,location.reference.temppos,location.reference.alignment,location.reference.volatility);
             reference_reset_base(location.reference,hreg,0,location.reference.temppos,location.reference.alignment,location.reference.volatility);
             { insert new index register }
             { insert new index register }
             location.reference.index:=maybe_const_reg;
             location.reference.index:=maybe_const_reg;