public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* question of RTL Generation
@ 2004-09-05 14:35 Hsin-Hsien Wu
  2004-09-05 18:06 ` Dale Johannesen
  0 siblings, 1 reply; 2+ messages in thread
From: Hsin-Hsien Wu @ 2004-09-05 14:35 UTC (permalink / raw)
  To: gcc

Hello,

Here is a RTL generated by gcc.
(insn 807 806 812 88 0x401639a0 (set (mem:DI (reg:SI 22 r22 [2]) [2 S8 A32])
        (reg/v:DI 16 r16 [65])) 107 {*target_movdi} (nil)
    (nil))

I don't want the register allocator to allocate the regs (regs >15) as a
memory index or base register.
(insn 807 806 812 88 0x401639a0 (set (mem:DI (reg:SI 22 r22 [2]) [2 S8 A32])

^____ I don't want r22 to be allocated here.

Does any one have the idea ?

Thanks

Mike Wu


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

* Re: question of RTL Generation
  2004-09-05 14:35 question of RTL Generation Hsin-Hsien Wu
@ 2004-09-05 18:06 ` Dale Johannesen
  0 siblings, 0 replies; 2+ messages in thread
From: Dale Johannesen @ 2004-09-05 18:06 UTC (permalink / raw)
  To: Hsin-Hsien Wu; +Cc: gcc, Dale Johannesen


On Sep 5, 2004, at 7:35 AM, Hsin-Hsien Wu wrote:

> Hello,
>
> Here is a RTL generated by gcc.
> (insn 807 806 812 88 0x401639a0 (set (mem:DI (reg:SI 22 r22 [2]) [2 S8 
> A32])
>         (reg/v:DI 16 r16 [65])) 107 {*target_movdi} (nil)
>     (nil))
>
> I don't want the register allocator to allocate the regs (regs >15) as 
> a
> memory index or base register.
> (insn 807 806 812 88 0x401639a0 (set (mem:DI (reg:SI 22 r22 [2]) [2 S8 
> A32])
>
> ^____ I don't want r22 to be allocated here.
>
> Does any one have the idea ?

This is done with register classes.  See the BASE_REGS class ('b' 
constraint)
in the powerpc port.

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

end of thread, other threads:[~2004-09-05 18:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-05 14:35 question of RTL Generation Hsin-Hsien Wu
2004-09-05 18:06 ` Dale Johannesen

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