mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-29 10:21:58 +02:00
* Do not replace ADD by SUB and vice-versa when overflow checking is enabled. Fixes tw15304 for ARM.
git-svn-id: trunk@23517 -
This commit is contained in:
parent
33f1f8bfad
commit
d8902af3d6
@ -791,7 +791,7 @@ unit cgcpu;
|
||||
|
||||
begin
|
||||
ovloc.loc:=LOC_VOID;
|
||||
if {$ifopt R+}(a<>-2147483648) and{$endif} is_shifter_const(-a,shift) then
|
||||
if {$ifopt R+}(a<>-2147483648) and{$endif} not setflags and is_shifter_const(-a,shift) then
|
||||
case op of
|
||||
OP_ADD:
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user