Переглянути джерело

* 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: