This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: asm changes? [Was: Re: flow.c bugfix ]
- To: law at cygnus dot com, Richard Henderson <rth at cygnus dot com>
- Subject: Re: asm changes? [Was: Re: flow.c bugfix ]
- From: Richard Henderson <rth at cygnus dot com>
- Date: Fri, 4 Dec 1998 18:29:59 -0800
- Cc: Bernd Schmidt <crux at pool dot informatik dot rwth-aachen dot de>, egcs at cygnus dot com
- References: <19981204154400.E13033@dot.cygnus.com> <19317.912820167@hurl.cygnus.com>
- Reply-To: Richard Henderson <rth at cygnus dot com>
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~