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]

Regarding machine modes


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



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