This is the mail archive of the gcc@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]

Re: constrain two register operands to be distinct


At 7:33 PM +0530 3/26/01, Soubhik Bhattacharya wrote:

>hi!!
>
>i'm trying to generate gcc machine description for some arbitrary
>target. is there a way to tell gcc that two operands of an 'insn', both
>being registers of same class, shud be distinct?
>
>any idea/ suggestion will be highly appreciated...
>
>thanks,
>soubhik.

	Use a earlyclobber constraint '&' on the destination.  (assuming that one of the register operands
	is written.  If they're both "read operands", I think you have to make some "artificial" subclasses
	of registers (all the odds vs. all the evens?) and use them.


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