+ 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:
florian 2017-08-20 16:45:02 +00:00
parent a53d6bd6bd
commit dba1761a76

View File

@ -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