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: [SH] Fold big/little endian word code with MSW and LSW


On Fri, 2012-04-06 at 10:46 +0900, Kaz Kojima wrote:
> From: Oleg Endo <oleg.endo@t-online.de>
> >> 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?
> 
> Sounds better but still a bit too generic.  SH_{HIGH,LOW}_WORD
> would be Ok, though not so cool. 
> 

On a second thought, it might be better to simplify those cases in
the .md file, where low/high subregs are used by using 'gen_highpart'
and 'gen_lowpart' for example, instead of checking the endianness over
and over again.
I'm trying out a couple of things...

Cheers,
Oleg


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