mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 19:28:13 +02:00
* fix min/max intrinsics on x86_64 for non constant/reference/register locations, resolves #40721
This commit is contained in:
parent
7c3ab69c50
commit
3b8fcfc6eb
@ -1726,9 +1726,14 @@ implementation
|
||||
paraarray[1]:=tcallparanode(parameters).paravalue;
|
||||
end;
|
||||
|
||||
if not(paraarray[1].location.loc in [LOC_CONSTANT,LOC_REFERENCE,LOC_CREFERENCE,LOC_REGISTER,LOC_CREGISTER]) then
|
||||
hlcg.location_force_reg(current_asmdata.CurrAsmList,paraarray[1].location,
|
||||
paraarray[1].resultdef,paraarray[1].resultdef,true);
|
||||
|
||||
location_reset(location,LOC_REGISTER,paraarray[1].location.size);
|
||||
location.register:=cg.getintregister(current_asmdata.CurrAsmList,location.size);
|
||||
|
||||
|
||||
hlcg.a_load_loc_reg(current_asmdata.CurrAsmList,paraarray[1].resultdef,resultdef,paraarray[1].location,location.register);
|
||||
cg.a_reg_alloc(current_asmdata.CurrAsmList,NR_DEFAULTFLAGS);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user