From: ceriel Date: Wed, 20 May 1987 13:56:26 +0000 (+0000) Subject: Added some patterns, generate mes 8 after mes 2 X-Git-Tag: release-5-5~4115 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=231841bcfef5a5c7e02464542fa073c8758f837d;p=ack.git Added some patterns, generate mes 8 after mes 2 --- diff --git a/util/opt/cleanup.c b/util/opt/cleanup.c index aa5db030e..dae07df87 100644 --- a/util/opt/cleanup.c +++ b/util/opt/cleanup.c @@ -38,6 +38,13 @@ cleanup() { if (infile == NULL) error("temp file disappeared"); outshort(sp_magic); + /* Attempt to first output the word_size message */ + /* commented out for the time being + while ((c = getc(infile)) != sp_cend && c != EOF) { + putc(c, outfile); + } + if (c == sp_cend) putc(c, outfile); + */ outinst(ps_mes); outint(ms_ext); for (spp=symhash;spp< &symhash[NSYMHASH];spp++) diff --git a/util/opt/patterns b/util/opt/patterns index 528c9d8da..f1a447636 100644 --- a/util/opt/patterns +++ b/util/opt/patterns @@ -174,6 +174,10 @@ ldc mli $1==1 && $2==2*w: loc mlu $1==1 && $2==w: ldc mlu $1==1 && $2==2*w: loc sbi $1==1 && $2==w: dec +loc loe mlu $3==w: loe $2 loc $1 mlu w +loc lol mlu $3==w: lol $2 loc $1 mlu w +ldc lde mlu $3==2*w: lde $2 ldc $1 mlu 2*w +ldc ldl mlu $3==2*w: ldl $2 ldc $1 mlu 2*w loc loe mli $3==w: loe $2 loc $1 mli w loc loe adi loc $3==w: loe $2 loc $1 adi w loc $4 loc loe adi inc $3==w: loe $2 loc $1 adi w inc