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




Ian Lance Taylor-3 wrote:
> 
> 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
> 
> 

Hi,

Ya its really not fine that it takes whatever mode. 

Please tell is there any way in gcc by which i can separately maintain mode
of 'CONST_INT' RTX.

Rajiv.


-- 
View this message in context: http://old.nabble.com/mode-of-CONST_INT-tp27945040p27982352.html
Sent from the gcc - Help mailing list archive at Nabble.com.


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