mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 08:09:33 +02:00
* check UseIncDec before generating an INC instruction in tx86addnode.emit_generic_code
git-svn-id: trunk@32057 -
This commit is contained in:
parent
d80e318945
commit
457107d165
@ -146,7 +146,8 @@ unit nx86add;
|
||||
if (op=A_ADD) and
|
||||
(right.location.loc=LOC_CONSTANT) and
|
||||
(right.location.value=1) and
|
||||
not(cs_check_overflow in current_settings.localswitches) then
|
||||
not(cs_check_overflow in current_settings.localswitches) and
|
||||
UseIncDec then
|
||||
begin
|
||||
emit_reg(A_INC,TCGSize2Opsize[opsize],left.location.register);
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user