Browse Source

* fixed another missing swapleftright for subn

git-svn-id: trunk@557 -
Jonas Maebe 20 years ago
parent
commit
d27fa6d0b3
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;
                   subn:
                     begin
+                      if nf_swaped in flags then
+                        swapleftright;
                       exprasmlist.concat(taicpu.op_reg_reg_reg(A_SUB,location.register,
                         left.location.register,right.location.register));
                       exprasmlist.concat(taicpu.op_reg_reg(A_CMPLW,left.location.register,location.register));