Ver código fonte

* fixed another missing swapleftright for subn

git-svn-id: trunk@557 -
Jonas Maebe 20 anos atrás
pai
commit
d27fa6d0b3
1 arquivos alterados com 2 adições e 0 exclusões
  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));