mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2025-08-07 17:24:58 +00:00
Generate better code for equality comparisons against -1/0xFFFF.
This commit is contained in:
2
Gen.pas
2
Gen.pas
@@ -2259,6 +2259,8 @@ if (op^.optype in [cgByte,cgUByte,cgWord,cgUWord]) and
|
|||||||
end {if}
|
end {if}
|
||||||
else if num = 1 then
|
else if num = 1 then
|
||||||
GenImplied(m_dea)
|
GenImplied(m_dea)
|
||||||
|
else if num = -1 then
|
||||||
|
GenImplied(m_ina)
|
||||||
else
|
else
|
||||||
GenNative(m_cmp_imm, immediate, num, nil, 0);
|
GenNative(m_cmp_imm, immediate, num, nil, 0);
|
||||||
if opcode = pc_fjp then
|
if opcode = pc_fjp then
|
||||||
|
Reference in New Issue
Block a user