Generate better code for equality comparisons against -1/0xFFFF.

This commit is contained in:
Stephen Heumann 2024-07-04 12:47:16 -05:00
parent 69320cd4d8
commit 6cf573a87c

View File

@ -2259,6 +2259,8 @@ if (op^.optype in [cgByte,cgUByte,cgWord,cgUWord]) and
end {if}
else if num = 1 then
GenImplied(m_dea)
else if num = -1 then
GenImplied(m_ina)
else
GenNative(m_cmp_imm, immediate, num, nil, 0);
if opcode = pc_fjp then