This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
How to define "implicit extend"
- From: devik <devik at cdi dot cz>
- To: <gcc at gcc dot gnu dot org>
- Date: Fri, 13 Dec 2002 00:40:33 +0100 (CET)
- Subject: How to define "implicit extend"
Hello,
I'd like to ask another (maybe stupid) question.
CPU I'm defining can opearate on each 64bit register
in all modes from QI to DI. All operations in
non-DI modes clears all upper bits.
So for:
int a; short b; a=b+b;
I can do:
add.16 b,b,a
and it does zero_extend to SImode by default. Is there
way to tell GCC that all registers can be zero_extended
just by pretending they already are ?
thanks, devik