* Regarding machine modes
@ 2008-10-02 5:33 Sivaprasad.pv
2008-10-03 15:16 ` Ian Lance Taylor
0 siblings, 1 reply; 2+ messages in thread
From: Sivaprasad.pv @ 2008-10-02 5:33 UTC (permalink / raw)
To: gcc
Hi all,
I have little confusion about machine modes.
Initially our architecture supports both 16 & 32 bit registers.
At that time we have used
QImode - char
HImode - intergers (16 bit)
SImode - long interger(32 bit)
Now we are proposed to change all registers to 32 bit registers.We have
corresponding load/store 8/16/32bit instructions available with
sign/zero extension.
Now any data item is represented as 32 bit value in registers.
Can I define a pattern with QImode / HImode/SImode (in .md file) or I
should use only SImode.
Thanks,
Siva Prasad
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Regarding machine modes
2008-10-02 5:33 Regarding machine modes Sivaprasad.pv
@ 2008-10-03 15:16 ` Ian Lance Taylor
0 siblings, 0 replies; 2+ messages in thread
From: Ian Lance Taylor @ 2008-10-03 15:16 UTC (permalink / raw)
To: Sivaprasad.pv; +Cc: gcc
"Sivaprasad.pv" <sivaprasad.pv@redpinesignals.com> writes:
> I have little confusion about machine modes.
> Initially our architecture supports both 16 & 32 bit registers.
> At that time we have used
> QImode - char
> HImode - intergers (16 bit)
> SImode - long interger(32 bit)
>
> Now we are proposed to change all registers to 32 bit registers.We
> have corresponding load/store 8/16/32bit instructions available with
> sign/zero extension.
> Now any data item is represented as 32 bit value in registers.
> Can I define a pattern with QImode / HImode/SImode (in .md file) or I
> should use only SImode.
You must define movqi and movhi, and you must define PROMOTE_MODE
and/or LOAD_EXTEND_OP and/or provide sign- and zero-extension insns.
Whether to define other QImode and HImode operations is optional, and
depends on the instructions available on your processor.
Ian
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-10-03 15:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-02 5:33 Regarding machine modes Sivaprasad.pv
2008-10-03 15:16 ` 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).