Browse Source

Merged revisions 557 via svnmerge from
/trunk

git-svn-id: branches/fixes_2_0@559 -

Jonas Maebe 20 years ago
parent
commit
6984a33578
1 changed files with 2 additions and 0 deletions
  1. 2 0
      compiler/powerpc/nppcadd.pas

+ 2 - 0
compiler/powerpc/nppcadd.pas

@@ -1429,6 +1429,8 @@ interface
                     end;
                     end;
                   subn:
                   subn:
                     begin
                     begin
+                      if nf_swaped in flags then
+                        swapleftright;
                       exprasmlist.concat(taicpu.op_reg_reg_reg(A_SUB,location.register,
                       exprasmlist.concat(taicpu.op_reg_reg_reg(A_SUB,location.register,
                         left.location.register,right.location.register));
                         left.location.register,right.location.register));
                       exprasmlist.concat(taicpu.op_reg_reg(A_CMPLW,left.location.register,location.register));
                       exprasmlist.concat(taicpu.op_reg_reg(A_CMPLW,left.location.register,location.register));