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

This commit is contained in:
florian 2024-11-01 22:28:57 +01:00
parent 5acf85a932
commit bea36238e7

View File

@ -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);