This is the mail archive of the gcc-help@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: mode of CONST_INT


Rajiv KI <rajivkumarsingla@gmx.com> writes:

> Mode of RTL expression 'CONST_INT' is VOIDmode. Is there any way i can make
> its mode to SImode or any other mode even.
>
> I have tried PUT_MODE macro.As CONST_INT has only one operand as 'w' (wide
> integer).I think due to that It was not effective.
>
> Please help me in resolving this.

By definition CONST_INT rtxes have no mode.  They take on whatever
mode the context requires.  This is indeed awkward in some cases, and
sometimes requires maintaining the mode separately.

Ian


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