* For 8/16 bit CPUs and TP mode, disable expansion to a larger integer type for subtract operations on unsigned integers. This is TP7 compatible.

git-svn-id: trunk@46233 -
This commit is contained in:
yury 2020-08-04 20:45:29 +00:00
parent ec3eef03f1
commit 719220e8a4

View File

@ -2225,7 +2225,11 @@ implementation
This is compatible with the code below for other unsigned types (PFV) }
if is_signed(left.resultdef) or
is_signed(right.resultdef) or
(nodetype=subn) then
((nodetype=subn)
{$if defined(cpu8bitalu) or defined(cpu16bitalu)}
and not (m_tp7 in current_settings.modeswitches)
{$endif}
) then
begin
if nodetype<>subn then
CGMessage(type_h_mixed_signed_unsigned);