Browse Source

* fixed missing swapleftright in case of substracting unsigned numbers
with overflow checking turned on

git-svn-id: trunk@6818 -

Jonas Maebe 18 years ago
parent
commit
1580e046ed
1 changed files with 2 additions and 0 deletions
  1. 2 0
      compiler/powerpc64/nppcadd.pas

+ 2 - 0
compiler/powerpc64/nppcadd.pas

@@ -325,6 +325,8 @@ begin
           end;
         subn:
           begin
+            if (nf_swapped in flags) then
+              swapleftright;
             current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg_reg(A_SUB, location.register,
               left.location.register, right.location.register));
             current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg(A_CMPLD,