This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: Abt long long support
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: "'Dave Korn'" <dave dot korn at artimi dot com>, "'Mohamed Shafi'" <shafitvm at gmail dot com>, "'Ian Lance Taylor'" <iant at google dot com>
- Cc: "'Mike Stump'" <mrs at apple dot com>, "'Rask Ingemann Lambertsen'" <rask at sygehus dot dk>, <gcc at gcc dot gnu dot org>
- Date: Mon, 13 Nov 2006 13:25:23 -0000
- Subject: RE: Abt long long support
On 13 November 2006 12:37, Dave Korn wrote:
> You *must* implement a movdi expander, and it has to be clever enough to
> notice when one of the output registers is going to clobber one of the input
> operands and emit the two SImode halves of the move in the opposite order.
Take a look at, e.g., rs6000.md, the way that movdi is an expander that
calls rs6000_emit_move to emit a (set (xxx:DI ) (xxx:DI)) which is then
recognized by *movdi_internal32 which takes care to emit two SI-sized move
opcodes in the right order.
Doing this also avoids a bug in the interpretation of REG_EQUAL notes when
applied to SI mode SUBREGs of DI mode REGs during cse, at least in 3.3.3 it
does.
cheers,
DaveK
--
Can't think of a witty .sigline today....