From b218202619dc4f2ca223f7e256abb9771cb1ca5e 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 00000000..ecbe2e6d --- /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 00000000..b8712864 --- /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 ; + +%%;