This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] use mode/code macros for vax.md
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: stevenb at suse dot de (Steven Bosscher)
- Cc: dave dot anglin at nrc dot ca, gcc-patches at gcc dot gnu dot org
- Date: Fri, 25 Mar 2005 14:24:57 -0500 (EST)
- Subject: Re: [patch] use mode/code macros for vax.md
> I was bored the other day and hacked vax.md to use mode macros, and
> also code macros for the jump patterns, to see how much shorter an
> MD file could get if you use them. Well,
>
> vax-protos.h | 2
> vax.c | 174 +++++++++++
> vax.md | 929 ++++++++++-------------------------------------------------
> 3 files changed, 347 insertions(+), 758 deletions(-)
Awesome!
> Dave, could you test this (or just OK it ;-) ?
I'll do both.
> * vax-protos.h (vax_output_int_move, vax_output_int_add):
> New prototypes.
> * vax.c (vax_output_int_move, vax_output_int_add): New functions,
> extracted from vax.md mov and add patterns.
> * vax.md: Use mode macros for arithmetic and mov patterns.
> Use code macros for the jump patterns.
OK for head with duplicate line removed.
Thanks,
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)