This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: reload vs adds with clobbers
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- To: dj at redhat dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 30 May 03 18:27:52 EDT
- Subject: Re: reload vs adds with clobbers
> What's "right"? If an addition needs a scratch register (it was said
> that it had a CLOBBER), the only way to produce that is via the secondary
> reloads. The approach above sounds exactly correct.
It needs to clobber the carry, nothing else. But I see your point.
For those who might not, the "carry" here is a "scratch register"
since there could well be code that depends on it being preserved
across that insn.