mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-19 22:49:37 +01:00
+ tcgx86.a_load_reg_ref cuts data if the ref. size is smaller than the reg. size
git-svn-id: trunk@36953 -
This commit is contained in:
parent
a53d6bd6bd
commit
dba1761a76
@ -952,6 +952,11 @@ unit cgx86;
|
||||
begin
|
||||
tmpref:=ref;
|
||||
make_simple_ref(list,tmpref);
|
||||
if TCGSize2Size[fromsize]>TCGSize2Size[tosize] then
|
||||
begin
|
||||
fromsize:=tosize;
|
||||
reg:=makeregsize(list,reg,fromsize);
|
||||
end;
|
||||
check_register_size(fromsize,reg);
|
||||
sizes2load(fromsize,tosize,op,s);
|
||||
case s of
|
||||
|
||||
Loading…
Reference in New Issue
Block a user