This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Bizarre addressing modes


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]