public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* register allocation in gcc
@ 2011-10-18  8:25 vikramsp
  2011-10-18 13:53 ` Paulo J. Matos
  0 siblings, 1 reply; 3+ messages in thread
From: vikramsp @ 2011-10-18  8:25 UTC (permalink / raw)
  To: gcc


In my .md file there is an insn 
(define_insn abssf2
      ....
      ....
     (clobber (match_scratch 2 ""))

the %2 register is allocated as r0 in the real code.
My problem is that i want other than r0 to be allocated
for operand 2.
Please help how to do that.
-- 
View this message in context: http://old.nabble.com/register-allocation-in-gcc-tp32672242p32672242.html
Sent from the gcc - Dev mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: register allocation in gcc
  2011-10-18  8:25 register allocation in gcc vikramsp
@ 2011-10-18 13:53 ` Paulo J. Matos
  2011-10-18 17:46   ` vikramsp
  0 siblings, 1 reply; 3+ messages in thread
From: Paulo J. Matos @ 2011-10-18 13:53 UTC (permalink / raw)
  To: gcc

On 18/10/11 06:12, vikramsp wrote:
>
> In my .md file there is an insn
> (define_insn abssf2
>        ....
>        ....
>       (clobber (match_scratch 2 ""))
>
> the %2 register is allocated as r0 in the real code.
> My problem is that i want other than r0 to be allocated
> for operand 2.
> Please help how to do that.

Replied to you in gcc-help. Please avoid cross-posting.

(even though this kind of question might be better suited in this group)

-- 
PMatos

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: register allocation in gcc
  2011-10-18 13:53 ` Paulo J. Matos
@ 2011-10-18 17:46   ` vikramsp
  0 siblings, 0 replies; 3+ messages in thread
From: vikramsp @ 2011-10-18 17:46 UTC (permalink / raw)
  To: gcc


I got you. 


Paulo J. Matos-3 wrote:
> 
> On 18/10/11 06:12, vikramsp wrote:
>>
>> In my .md file there is an insn
>> (define_insn abssf2
>>        ....
>>        ....
>>       (clobber (match_scratch 2 ""))
>>
>> the %2 register is allocated as r0 in the real code.
>> My problem is that i want other than r0 to be allocated
>> for operand 2.
>> Please help how to do that.
> 
> Replied to you in gcc-help. Please avoid cross-posting.
> 
> (even though this kind of question might be better suited in this group)
> 
> -- 
> PMatos
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/register-allocation-in-gcc-tp32672242p32676590.html
Sent from the gcc - Dev mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-10-18 17:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-18  8:25 register allocation in gcc vikramsp
2011-10-18 13:53 ` Paulo J. Matos
2011-10-18 17:46   ` vikramsp

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).