mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-06 00:10:19 +02:00
16-bit ALU fix in tcgunaryminusnode.second_integer
git-svn-id: branches/i8086@23745 -
This commit is contained in:
parent
4ac508a2b9
commit
588b12200b
@ -245,7 +245,7 @@ implementation
|
||||
if (left.resultdef.size<=sinttype.size) then
|
||||
opsize:=sinttype
|
||||
else
|
||||
opsize:=s64inttype;
|
||||
opsize:={$ifdef cpu16bitalu}s32inttype{$else}s64inttype{$endif};
|
||||
{$endif cpunodefaultint}
|
||||
hlcg.location_force_reg(current_asmdata.CurrAsmList,location,left.resultdef,opsize,false);
|
||||
hlcg.a_op_reg_reg(current_asmdata.CurrAsmList,OP_NEG,opsize,location.register,location.register);
|
||||
|
Loading…
Reference in New Issue
Block a user