This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: question of RTL Generation
- From: Dale Johannesen <dalej at apple dot com>
- To: Hsin-Hsien Wu <sinsen dot wu at msa dot hinet dot net>
- Cc: gcc at gcc dot gnu dot org, Dale Johannesen <dalej at apple dot com>
- Date: Sun, 5 Sep 2004 11:03:18 -0700
- Subject: Re: question of RTL Generation
- References: <00f201c49355$9cd4c6f0$0f00a8c0@ccu1ezwhixayf2>
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.