This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Bizarre addressing modes
- From: Raimonds Cicans <ray at vardes dot lv>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 12 May 2003 18:45:21 +0300
- Subject: Bizarre addressing modes
- Organization: VAR Datu Sistemas
Hi!
Some questions about %SUBJ%:
1) Some instructions on target cpu as operand use
something like this: (reg:QI (reg:QI REG_PTR))
(register point to register)
Question: does gcc understand such things, or
I must hide it from gcc
example
(set (reg:QI REG_PTR) (const_int REG_MY))
(.......(reg:QI (reg:QI REG_PTR))..........)
OR
(set (reg:QI REG_PTR) (const_int REG_MY))
(........(match_operand:QI 0 "register_operand" "")...
...(unspec:QI [(reg:QI REG_PTR)])........)
2) Some registers are memory mapped
Question: a) can I change access to this register (after reload pass)
by memory access or this should be done in assembly output?
b) Can I 'teach' 'addressof' to use register address
instead of putting register on stack
Raimonds Cicans
P.S. Sorry for my English