Bizarre addressing modes

Raimonds Cicans ray@vardes.lv
Mon May 12 15:45:00 GMT 2003


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



More information about the Gcc mailing list