* 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:
yury 2013-01-24 21:49:21 +00:00
parent 33f1f8bfad
commit d8902af3d6

View File

@ -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