* fixed tnegnotassign1.pp on powerpc and other RISC cpus

git-svn-id: trunk@35757 -
This commit is contained in:
nickysn 2017-04-09 14:28:13 +00:00
parent 11b163ee18
commit 9187825e3a

View File

@ -1698,7 +1698,14 @@ implementation
begin
tmpreg:=getintregister(list,size);
a_load_ref_reg(list,size,size,ref,tmpreg);
a_op_reg_reg(list,op,size,reg,tmpreg);
if op in [OP_NEG,OP_NOT] then
begin
if reg<>NR_NO then
internalerror(2017040901);
a_op_reg_reg(list,op,size,tmpreg,tmpreg);
end
else
a_op_reg_reg(list,op,size,reg,tmpreg);
a_load_reg_ref(list,size,size,tmpreg,ref);
end;