Browse Source

* fix trvinlinenode.second_fma

florian 7 months ago
parent
commit
5add799193
1 changed files with 2 additions and 1 deletions
  1. 2 1
      compiler/riscv/nrvinl.pas

+ 2 - 1
compiler/riscv/nrvinl.pas

@@ -367,7 +367,8 @@ implementation
              location_reset(location,LOC_FPUREGISTER,paraarray[1].location.size);
              location_reset(location,LOC_FPUREGISTER,paraarray[1].location.size);
              location.register:=cg.getfpuregister(current_asmdata.CurrAsmList,location.size);
              location.register:=cg.getfpuregister(current_asmdata.CurrAsmList,location.size);
 
 
-             current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg_reg_reg(op[def_cgsize(resultdef), negproduct,negop3],location.register,paraarray[1].location.register,paraarray[2].location.register,paraarray[2].location.register));
+             current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg_reg_reg(op[def_cgsize(resultdef), negproduct,negop3],
+               location.register,paraarray[1].location.register,paraarray[2].location.register,paraarray[3].location.register));
              cg.maybe_check_for_fpu_exception(current_asmdata.CurrAsmList);
              cg.maybe_check_for_fpu_exception(current_asmdata.CurrAsmList);
            end
            end
          else
          else