소스 검색

* generate soft float code for arm vfp units which have no double operation support

git-svn-id: trunk@45799 -
florian 5 년 전
부모
커밋
db250b04e0
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      compiler/arm/narmmat.pas

+ 4 - 1
compiler/arm/narmmat.pas

@@ -368,7 +368,10 @@ implementation
         if codegenerror then
           exit;
 
-        if (left.resultdef.typ=floatdef) and (current_settings.fputype=fpu_soft) then
+        { if we get here and VFP support is on, there is no 64 bit VFP operation support available,
+          so in this case the software version needs to be called }
+        if (left.resultdef.typ=floatdef) and ((current_settings.fputype=fpu_soft) or
+          (FPUARM_HAS_VFP_EXTENSION in fpu_capabilities[current_settings.fputype])) then
           begin
             case tfloatdef(resultdef).floattype of
               s64real: