From 481bcd8a8b97a802b9cb58d4a239238d41b864f0 Mon Sep 17 00:00:00 2001 From: dtrg Date: Thu, 20 Mar 2008 23:20:08 +0000 Subject: [PATCH] Added a very-nearly-noop peephole optimiser for Z80. --- mach/z80/top/.distr | 1 + mach/z80/top/table | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 mach/z80/top/.distr create mode 100644 mach/z80/top/table diff --git a/mach/z80/top/.distr b/mach/z80/top/.distr new file mode 100644 index 000000000..ecbe2e6d5 --- /dev/null +++ b/mach/z80/top/.distr @@ -0,0 +1 @@ +table diff --git a/mach/z80/top/table b/mach/z80/top/table new file mode 100644 index 000000000..b87128643 --- /dev/null +++ b/mach/z80/top/table @@ -0,0 +1,15 @@ + +/* 8080 desciptor table for ACK target optimizer */ + +MAXOP 2; + +%%; + +X, Y, Z { TRUE }; +%%; + +/* Whitespace is significant here! */ + +ld X, Y : ld X, Z -> mov X, Z ; + +%%;