* mode of CONST_INT
@ 2010-03-18 13:29 Rajiv KI
2010-03-19 15:50 ` Ian Lance Taylor
0 siblings, 1 reply; 4+ messages in thread
From: Rajiv KI @ 2010-03-18 13:29 UTC (permalink / raw)
To: gcc-help
Hi all,
I have one doubt to clarify :
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.
Rajiv.
--
View this message in context: http://old.nabble.com/mode-of-CONST_INT-tp27945040p27945040.html
Sent from the gcc - Help mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: mode of CONST_INT
2010-03-18 13:29 mode of CONST_INT Rajiv KI
@ 2010-03-19 15:50 ` Ian Lance Taylor
2010-03-22 8:06 ` Rajiv KI
0 siblings, 1 reply; 4+ messages in thread
From: Ian Lance Taylor @ 2010-03-19 15:50 UTC (permalink / raw)
To: Rajiv KI; +Cc: gcc-help
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: mode of CONST_INT
2010-03-19 15:50 ` Ian Lance Taylor
@ 2010-03-22 8:06 ` Rajiv KI
2010-03-23 3:27 ` Ian Lance Taylor
0 siblings, 1 reply; 4+ messages in thread
From: Rajiv KI @ 2010-03-22 8:06 UTC (permalink / raw)
To: gcc-help
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: mode of CONST_INT
2010-03-22 8:06 ` Rajiv KI
@ 2010-03-23 3:27 ` Ian Lance Taylor
0 siblings, 0 replies; 4+ messages in thread
From: Ian Lance Taylor @ 2010-03-23 3:27 UTC (permalink / raw)
To: Rajiv KI; +Cc: gcc-help
Rajiv KI <rajivkumarsingla@gmx.com> writes:
> Ian Lance Taylor-3 wrote:
>>
>> 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
>>
>>
>
> 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.
You have to provide a mode for any case where you might see a
CONST_INT. The gcc middle-end and backends already does this, because
they must.
Ian
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-03-23 3:24 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-18 13:29 mode of CONST_INT Rajiv KI
2010-03-19 15:50 ` Ian Lance Taylor
2010-03-22 8:06 ` Rajiv KI
2010-03-23 3:27 ` Ian Lance Taylor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).