This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]