瀏覽代碼

* fixed web bug #4058 (missing swapleftright for subtraction if overflow
checking is turned on)

git-svn-id: trunk@327 -

Jonas Maebe 20 年之前
父節點
當前提交
2b4d3312f7
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      compiler/powerpc/nppcadd.pas

+ 2 - 3
compiler/powerpc/nppcadd.pas

@@ -778,6 +778,8 @@ interface
           subn :
             begin
               op:=OP_SUB;
+              if (nf_swaped in flags) then
+                swapleftright;
             end;
           ltn,lten,
           gtn,gten,
@@ -906,9 +908,6 @@ interface
                 end;
               subn:
                 begin
-                  if (nf_swaped in flags) then
-                    swapleftright;
-
                   if left.location.loc <> LOC_CONSTANT then
                     begin
                       if (location.register64.reglo = NR_NO) then