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]

Re: mem operator with unspecified width


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~


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