소스 검색

* MIPS: don't generate FPU code for int to real conversion when FPU emulation is enabled

Nikolay Nikolov 11 달 전
부모
커밋
b077d17cdd
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      compiler/mips/ncpucnv.pas

+ 5 - 0
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