mem operator with unspecified width

Richard Henderson rth@redhat.com
Wed Aug 15 15:22:00 GMT 2001


On Wed, Aug 15, 2001 at 12:20:00PM -0700, Stephen Clarke wrote:
> Is it legal in RTL for a mem operator to have unspecified width?

Yes, but ...

> (insn 56 55 58 (set (reg:DI 169)
>        (mem (unspec[ 

... this is illegal.  Unspecified width is BLKmode, not VOIDmode.
Additionally, the modes of source and destination must match.  The
only object that is allowed to be VOIDmode is an integer constant.

You certainly want this mem to be Pmode, since this is a casesi pattern.
Note that unlike previous versions, gcc 3.1 allows Pmode in md patterns.


r~



More information about the Gcc mailing list