Browse Source

* generate fmrx instruction only if the cpu has the vfp extension, resolves #40985

florian 9 months ago
parent
commit
bea36238e7
1 changed files with 2 additions and 1 deletions
  1. 2 1
      compiler/arm/cgcpu.pas

+ 2 - 1
compiler/arm/cgcpu.pas

@@ -1779,7 +1779,8 @@ unit cgcpu;
         ai: taicpu;
         l: TAsmLabel;
       begin
-        if needs_check_for_fpu_exceptions and
+        if (FPUARM_HAS_VFP_EXTENSION in fpu_capabilities[current_settings.fputype]) and
+          needs_check_for_fpu_exceptions and
           (force or current_procinfo.FPUExceptionCheckNeeded) then
           begin
             r:=getintregister(list,OS_INT);