소스 검색

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

git-svn-id: trunk@23517 -
yury 13 년 전
부모
커밋
d8902af3d6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      compiler/arm/cgcpu.pas

+ 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