mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 13:09:22 +02:00
* RiscV: more reliable use_fma
This commit is contained in:
parent
0b49fba637
commit
4888442fb4
@ -339,7 +339,10 @@ implementation
|
|||||||
|
|
||||||
function trvaddnode.use_fma: boolean;
|
function trvaddnode.use_fma: boolean;
|
||||||
begin
|
begin
|
||||||
Result:=current_settings.fputype in [fpu_fd];
|
Result:=(is_single(left.resultdef) and is_single(right.resultdef) and
|
||||||
|
(CPURV_HAS_F in cpu_capabilities[current_settings.cputype])) or
|
||||||
|
(is_double(left.resultdef) and is_double(right.resultdef) and
|
||||||
|
(CPURV_HAS_D in cpu_capabilities[current_settings.cputype]));
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user