This is the mail archive of the 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: RFC: MIPS clones without lwl/lwr/swl/swr

> Looks good to me.


> The MIPS port usually guards this sort of instruction selection with an
> ISA_HAS_* macro (ISA_HAS_COND_TRAP, ISA_HAS_CLZ_CLO, etc.).  One thing
> I'd like to see is a new ISA_HAS_* macro to say whether lwl/lwr,
> etc. are available.  The macro would be false if your new option is
> passed and would also be false for TARGET_MIPS16.  If at some point
> in the future, -march is extended to support a processor without the
> patented instructions, the macro would be false when generating code
> for that processor.

Actually I'd prefer ISA_HAS_* for the -march and !TARGET_MIPS16 case and
use GENERATE_* for whether or not we should generate it. i.e.

			     && !TARGET_LEXRA* ) 

(or whatever we decide for the lexra chips or whatever doesn't have

and then


But it is just naming issues and such. Not horribly important. :)


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