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]

Re: Question about GO_IF_LEGITIMIZE_ADDRESS


On Mon, Feb 18, 2002 at 07:15:51PM -0500, DJ Delorie wrote:
> What about insn-specific predicates that match the addressing modes
> the insn supports?

If you use the 'p' or 'm' constraints, then reload may happily
notice that your (reg) address needs reloading and that it is
REG_EQUAL to a symbol_ref, which G_I_L_A accepts -> you lose.

Hmm.  Except this *would* work if you allocate an extra register via

  (clobber (match_scratch:SI N "=&a"))

which you can then use in case reload did change the address on you.


r~


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