Different addressing modes for loads and stores?

Ulrich Weigand Ulrich.Weigand@de.ibm.com
Wed May 14 14:20:00 GMT 2003


Fred Cook wrote:

>My loads support base+offset and base+register addressing while stores
>only have base+offset addressing. My GO_IF_LEGITIMATE_ADDRESS macro
>accepts both addressing modes. Now the question is how to prevent that
>the base+register mode is used for stores. For that changed the movsi
>pattern to:
[snip]
>and I used the EXTRA_CONSTRAINT macro to accept only base+offset
>if the letter argument is 'S'. However, this does not lead to what
>I wanted to achieve. "=r,Sm" or "=r,mS" also does not work.

We've had similar problems on s390 with different addressing modes.
To fix this, I've added the EXTRA_MEMORY_CONSTRAINT feature; this
should do what you want ...


Mit freundlichen Gruessen / Best Regards

Ulrich Weigand

--
  Dr. Ulrich Weigand
  Linux for S/390 Design & Development
  IBM Deutschland Entwicklung GmbH, Schoenaicher Str. 220, 71032 Boeblingen
  Phone: +49-7031/16-3727   ---   Email: Ulrich.Weigand@de.ibm.com



More information about the Gcc mailing list