+ set pi_do_call on xtensa as well if we check for fpu exceptions

* cosmetics
This commit is contained in:
florian 2024-02-14 23:03:48 +01:00
parent f7e4c0f282
commit 57f6ed804e
3 changed files with 8 additions and 2 deletions

View File

@ -357,6 +357,9 @@ interface
expectloc:=LOC_FLAGS
else
expectloc:=LOC_FPUREGISTER;
if needs_check_for_fpu_exceptions then
Include(current_procinfo.flags,pi_do_call);
end
else
result:=first_addfloat_soft;

View File

@ -52,6 +52,7 @@ unit ncpuinl;
defutil,
hlcgobj,
pass_2,
procinfo,
cgbase, cgobj, cgutils,
ncal,nutils,
cpubase;
@ -96,6 +97,8 @@ unit ncpuinl;
begin
expectloc:=LOC_FPUREGISTER;
Result:=nil;
if needs_check_for_fpu_exceptions then
Include(current_procinfo.flags,pi_do_call);
end
else
Result:=inherited first_fma;
@ -177,6 +180,8 @@ unit ncpuinl;
begin
expectloc:=LOC_REGISTER;
Result:=nil;
if needs_check_for_fpu_exceptions then
Include(current_procinfo.flags,pi_do_call);
end
else
Result:=inherited first_minmax;

View File

@ -54,5 +54,3 @@ procedure ClearExceptions(RaisePending: Boolean = true);
begin
softfloat_exception_flags:=[];
end;