mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-13 14:19:31 +02:00
* TCGMips.a_loadfpu_reg_cgpara: temps of type Double need 8-byte alignment, according to description of sdcX/ldcX instructions. Using TCGSize2Size to specify alignment is somewhat weird, but it is being used in other CPU back-ends and looks working.
git-svn-id: trunk@23146 -
This commit is contained in:
parent
1415569ecb
commit
db72b8d7fd
@ -679,7 +679,7 @@ procedure TCGMIPS.a_loadfpu_reg_cgpara(list: tasmlist; size: tcgsize; const r: t
|
||||
var
|
||||
href: treference;
|
||||
begin
|
||||
tg.GetTemp(list, TCGSize2Size[size], sizeof(aint), tt_normal, href);
|
||||
tg.GetTemp(list, TCGSize2Size[size], TCGSize2Size[size], tt_normal, href);
|
||||
a_loadfpu_reg_ref(list, size, size, r, href);
|
||||
a_loadfpu_ref_cgpara(list, size, href, paraloc);
|
||||
tg.Ungettemp(list, href);
|
||||
|
Loading…
Reference in New Issue
Block a user