Jelajahi Sumber

* Coldfire does not support MOVEM together with pre-decrement or post-increment, so abuse TST for that which is only a single instruction word

git-svn-id: trunk@38042 -
svenbarth 7 tahun lalu
induk
melakukan
9822374680
1 mengubah file dengan 10 tambahan dan 0 penghapusan
  1. 10 0
      rtl/m68k/int64p.inc

+ 10 - 0
rtl/m68k/int64p.inc

@@ -23,7 +23,12 @@ asm
     tst.l    d1
     beq.s    @xit0
 
+{$ifndef CPUCOLDFIRE}
     movem.l  d2-d5,-(sp)
+{$else}
+    tst.l    -(sp)
+    movem.l  d2-d5,(sp)
+{$endif}
     move.l   d0,d5
 
     eor.l    d1,d5
@@ -73,7 +78,12 @@ asm
     negx.l   d1
 
 @xit:
+{$ifndef CPUCOLDFIRE}
     movem.l  (sp)+,d2-d5
+{$else}
+    movem.l  (sp),d2-d5
+    tst.l    (sp)+
+{$endif}
     exg.l    d0,d1
     rts