From 09fa6b5893a9a0a6872654d41105acc2cd8685fb Mon Sep 17 00:00:00 2001 From: yury Date: Sun, 8 Jul 2007 08:17:32 +0000 Subject: [PATCH] * Fixed Abs and Sqrt in hardfloat mode on arm. git-svn-id: trunk@7980 - --- compiler/arm/narminl.pas | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/compiler/arm/narminl.pas b/compiler/arm/narminl.pas index d8ac36b79e..d3efd887d5 100644 --- a/compiler/arm/narminl.pas +++ b/compiler/arm/narminl.pas @@ -167,7 +167,7 @@ implementation procedure tarminlinenode.second_abs_real; begin load_fpu_location; - current_asmdata.CurrAsmList.concat(setoppostfix(taicpu.op_reg_reg(A_ABS,location.register,location.register),get_fpu_postfix(resultdef))); + current_asmdata.CurrAsmList.concat(setoppostfix(taicpu.op_reg_reg(A_ABS,location.register,left.location.register),get_fpu_postfix(resultdef))); end; @@ -181,7 +181,7 @@ implementation procedure tarminlinenode.second_sqrt_real; begin load_fpu_location; - current_asmdata.CurrAsmList.concat(setoppostfix(taicpu.op_reg_reg(A_SQT,location.register,location.register),get_fpu_postfix(resultdef))); + current_asmdata.CurrAsmList.concat(setoppostfix(taicpu.op_reg_reg(A_SQT,location.register,left.location.register),get_fpu_postfix(resultdef))); end; @@ -189,27 +189,27 @@ implementation procedure tarminlinenode.second_arctan_real; begin load_fpu_location; - current_asmdata.CurrAsmList.concat(setoppostfix(taicpu.op_reg_reg(A_ATN,location.register,location.register),get_fpu_postfix(resultdef))); + current_asmdata.CurrAsmList.concat(setoppostfix(taicpu.op_reg_reg(A_ATN,location.register,left.location.register),get_fpu_postfix(resultdef))); end; procedure tarminlinenode.second_ln_real; begin load_fpu_location; - current_asmdata.CurrAsmList.concat(setoppostfix(taicpu.op_reg_reg(A_LGN,location.register,location.register),get_fpu_postfix(resultdef))); + current_asmdata.CurrAsmList.concat(setoppostfix(taicpu.op_reg_reg(A_LGN,location.register,left.location.register),get_fpu_postfix(resultdef))); end; procedure tarminlinenode.second_cos_real; begin load_fpu_location; - current_asmdata.CurrAsmList.concat(setoppostfix(taicpu.op_reg_reg(A_COS,location.register,location.register),get_fpu_postfix(resultdef))); + current_asmdata.CurrAsmList.concat(setoppostfix(taicpu.op_reg_reg(A_COS,location.register,left.location.register),get_fpu_postfix(resultdef))); end; procedure tarminlinenode.second_sin_real; begin load_fpu_location; - current_asmdata.CurrAsmList.concat(setoppostfix(taicpu.op_reg_reg(A_SIN,location.register,location.register),get_fpu_postfix(resultdef))); + current_asmdata.CurrAsmList.concat(setoppostfix(taicpu.op_reg_reg(A_SIN,location.register,left.location.register),get_fpu_postfix(resultdef))); end; }