This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: how to force reloader(?) to respect clobber directive?
> > On Tue, Feb 26, 2002 at 12:13:43PM +0300, Dmitry wrote:
> > > (define_insn "tstsi"
> > > [(set (cc0) (match_operand:SI 0 "register_operand" "r"))
> > > (clobber (match_dup 0))]
> >
> > The constraint must be "+r" in this case.
My guess is that when expanding the insn you overwrite the input operand,
you should not.
In such situations you should probably use match_scratch construct to
get the output operand.
Honza
> >
> >
> > r~
> >