From b077d17cddf1140a5aff2f176e12990f41e00e07 Mon Sep 17 00:00:00 2001 From: Nikolay Nikolov <nickysn@gmail.com> Date: Sun, 29 Sep 2024 20:56:43 +0300 Subject: [PATCH] * MIPS: don't generate FPU code for int to real conversion when FPU emulation is enabled --- compiler/mips/ncpucnv.pas | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/compiler/mips/ncpucnv.pas b/compiler/mips/ncpucnv.pas index 5280ad1198..8dc988d219 100644 --- a/compiler/mips/ncpucnv.pas +++ b/compiler/mips/ncpucnv.pas @@ -74,6 +74,11 @@ function tmipseltypeconvnode.first_int_to_real: tnode; var fname: string[19]; begin + if cs_fp_emulation in current_settings.moduleswitches then + begin + result:=inherited; + exit; + end; { converting a 64bit integer to a float requires a helper } if is_64bitint(left.resultdef) or is_currency(left.resultdef) then