* do not copy parameters onto the stack using FPU registers if the type is

actually handled by the MM unit, resolves #39567
This commit is contained in:
florian 2022-02-10 22:42:10 +01:00
parent a8d19553b9
commit 67d80d414b

View File

@ -1492,10 +1492,14 @@ implementation
LOC_CMMREGISTER:
cg.a_loadmm_ref_cgpara(list,locsize,l.reference,cgpara,mms_movescalar);
{ Some targets pass floats in normal registers }
LOC_REFERENCE,
LOC_CREFERENCE:
if use_vectorfpu(size) then
cg.a_loadmm_ref_cgpara(list,locsize,l.reference,cgpara,mms_movescalar)
else
cg.a_loadfpu_ref_cgpara(list,locsize,l.reference,cgpara);
LOC_REGISTER,
LOC_CREGISTER,
LOC_REFERENCE,
LOC_CREFERENCE,
LOC_FPUREGISTER,
LOC_CFPUREGISTER:
cg.a_loadfpu_ref_cgpara(list,locsize,l.reference,cgpara);