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: asm changes? [Was: Re: flow.c bugfix ]


On Fri, Dec 04, 1998 at 06:09:27PM -0700, Jeffrey A Law wrote:
> It was something suggested by one of the ppc linux guys about a year ago...
> Basically it would be legitimizing (via one way or another) existing practice
> on the x86.  Something to think about.

Mm.  I'm not sure I like it, really.

> This may take the form of internally turning it the earlyclobber input into
> input+output matching operands with the earlyclobber on the output or some
> other form.  I don't know yet.  But it is important that the side effect of
> cobbering the input register be shown somewhere in the rtl.

Agreed.  I don't see any problem with transforming this into

	;; asm("" : : "&r"(value));

	(set (reg:SI tmp) value)

	[(asm_operands ("") ("") 0[
		(reg:SI tmp)
	    ]
	    [
		(asm_input:SI ("r"))
	    ] ...)
	 (clobber (reg:SI tmp))]


r~


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