This is the mail archive of the gcc-patches@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: [PATCH] Fix PR rtl-optimization/27661 (reload problem)


Bernd Schmidt wrote:

> From the sounds of it, you don't want the insn to end up with a 
> constant in the address anyway, so can't you just disallow these kinds 
> of addresses in GO_IF_LEGITIMATE_ADDRESS?

No, the address is perfectly legitimate, and other instructions 
will accept it, just this particular insn (alternative) doesn't.

We have different types of instructions accepting different variants
of valid addresses, some accept an index register and some don't,
and some accept only a 12-bit unsigned displacement while others
accept a 20-bit signed displacement.  I must accept *all* these
variants as legitimate addresses -- the insn constraints then work
out the fine details ...

Bye,
Ulrich

-- 
  Dr. Ulrich Weigand
  Linux on zSeries Development
  Ulrich.Weigand@de.ibm.com


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