This is the mail archive of the
mailing list for the GCC project.
Re: [SH] Fold big/little endian word code with MSW and LSW
On Fri, 2012-04-06 at 07:38 +0900, Kaz Kojima wrote:
> Oleg Endo <firstname.lastname@example.org> wrote:
> > The attached patch folds some of the code that needs to access high/low
> > subwords depending on the target endianess by utilizing the existing MSW
> > and LSW macros.
> > * config/sh/sh.c (MSW, LSW): Move macros to...
> > * config/sh/sh.h: ...here.
> > * config/sh/sh.md: Use MSW and LSW macros where applicable.
> Exposing three-letter macro MSW and LSW globally looks not
> a good idea to me.
Would 'HIGH_WORD' and 'LOW_WORD' be OK as an alternative?