* Clobbering two registers
@ 2010-05-12 16:17 Paulo J. Matos
2010-05-12 17:47 ` Ian Lance Taylor
0 siblings, 1 reply; 3+ messages in thread
From: Paulo J. Matos @ 2010-05-12 16:17 UTC (permalink / raw)
To: gcc
Hi all,
How can I say in the machine architecture that to generate code for a
particular insn I need any two registers for intermediate operations?
To get one I think that (clobber (match_operand ...)) will work but
what if I want two? Can I add two clobbers on the same define_insn
rule?
Cheers,
--
PMatos
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Clobbering two registers
2010-05-12 16:17 Clobbering two registers Paulo J. Matos
@ 2010-05-12 17:47 ` Ian Lance Taylor
2010-05-16 23:58 ` Paulo J. Matos
0 siblings, 1 reply; 3+ messages in thread
From: Ian Lance Taylor @ 2010-05-12 17:47 UTC (permalink / raw)
To: Paulo J. Matos; +Cc: gcc
"Paulo J. Matos" <pocmatos@gmail.com> writes:
> How can I say in the machine architecture that to generate code for a
> particular insn I need any two registers for intermediate operations?
> To get one I think that (clobber (match_operand ...)) will work but
> what if I want two? Can I add two clobbers on the same define_insn
> rule?
Yes.
Also look at match_scratch.
Ian
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Clobbering two registers
2010-05-12 17:47 ` Ian Lance Taylor
@ 2010-05-16 23:58 ` Paulo J. Matos
0 siblings, 0 replies; 3+ messages in thread
From: Paulo J. Matos @ 2010-05-16 23:58 UTC (permalink / raw)
To: Ian Lance Taylor; +Cc: gcc
On Wed, May 12, 2010 at 6:43 PM, Ian Lance Taylor <iant@google.com> wrote:
>
> Yes.
>
> Also look at match_scratch.
>
I assume that I only need to setup two match_scratch then, right?
--
PMatos
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-05-16 23:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-12 16:17 Clobbering two registers Paulo J. Matos
2010-05-12 17:47 ` Ian Lance Taylor
2010-05-16 23:58 ` Paulo J. Matos
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).