فهرست منبع

* 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