This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Copying SI regs as HI subregs
- From: "D. Towner" <towner at compsci dot bristol dot ac dot uk>
- To: gcc <gcc at gcc dot gnu dot org>
- Date: Thu, 28 Feb 2002 10:24:15 +0000 (GMT)
- Subject: Copying SI regs as HI subregs
Hi all,
I am porting gcc to a machine which uses 2 HImode regs to represent an
SImode reg. Currently, a movsi instruction emits two register moves to
copy the value:
MOVE lowpartSrc, lowpartDest
MOVE highpartSRC, highpartDest
Is it more efficient to use RTL to generate the two subreg moves
explicitly? Does this present opportunities for optimisation if gcc knows
that two such instructions are used, rather than a single atomic movsi
instruction? How can I go about actually generating the RTL if this is the
case?
Thanks,
Dan.