* src/pic16/device.c (pic16_dump_usection): force udata sections
[fw/sdcc] / src / z80 / peeph.def
index 8e5464978cdd4ed141ead177d9ce4d674b7052b6..365e5531f59afbbf262457e11cec9a12e4ba6214 100644 (file)
@@ -1,105 +1,7 @@
-replace restart {
-       ld (hl),(hl)
-} by {
-       ERROR - peephole - caught (hl),(hl)
-}
-replace restart {
-       ld %1,%1
-} by {
-       ; Rule 1: Removed redundent load
-}
-replace restart {
-       xor a,a
-       or a,%1
-       or a,a
-       jp %2,%3
-} by {
-       xor     a,a
-       or      a,%1
-       jp      %2,%3
-}
-replace restart {
-       cp a,#0x00
-       jp nz,%1
-} by {
-        ; Rule 3: Changed cp #0 to or
-       or      a,a
-       jp      nz,%1
-}
-replace restart {
-       jp nz,%1
-       jp      %2
-%1:
-       jp      %3
-%2:
-} by {
-       ; Rule 4: Changed jp order
-       jp      z,%2
-%1:
-       jp      %3
-%2:
-}
-replace restart {
-       jp      nz,%1
-       jp      %2
-%1:
-} by {
-       ; Rule 5: Changed jump logic
-       jp      z,%2
-%1:
-}
-replace restart {
-       jp      z,%1
-       jp      %2
-%1:
-} by {
-       ; Rule 6: Changed jump logic
-       jp      nz,%2
-%1:
-}
-replace restart {
-       or      a,%1
-       or      a,a
-} by {
-       ; Rule 7: Removed redundent or
-       or      a,%1
-}
-replace restart {
-       or      a,%1)
-        or      a,a
-} by {
-       ; Rule 8: Removed redundent or for (ix)
-       or      a,%1)
-}
-replace restart {
-       xor     a,a
-       or      a,%1
-       jp      nz,%2
-       xor     a,a
-       or      a,%3
-       jp      z,%2
-} by {
-       xor     a,a
-       or      a,%1
-       jp      nz,%2
-       or      a,%3
-       jp      z,%2
-}
-replace restart {
-       jp      nz,%1
-       inc     %3)
-%1:
-       jp      %2
-} by {
-       jp      nz,%2
-       inc     %3)
-%1:
-       jp      %2
-}
-replace restart {
-       xor     a,a
-       ld      a,#0x00
-} by {
-        xor     a,a
-}
-        
\ No newline at end of file
+// peeph.def - Common Z80 and gbz80 peephole rules
+
+// This file should contain common Z80/GBZ80 peepholes.
+// However the GBZ80 port is currently unmaintained;
+// a GBZ80 expert could extract peepholes that are useful for both Z80 and GBZ80
+// from peeph-z80.def and peeph-gbz80.def and move them here.
+