2
0
Эх сурвалжийг харах

* Do not replace ADD by SUB and vice-versa when overflow checking is enabled. Fixes tw15304 for ARM.

git-svn-id: trunk@23517 -
yury 12 жил өмнө
parent
commit
d8902af3d6

+ 1 - 1
compiler/arm/cgcpu.pas

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