gcc-3.4.0 fails for ColdFire(does not satisfy constraints)
Ian Lance Taylor
ian@wasabisystems.com
Tue Apr 27 16:35:00 GMT 2004
Peter Barada <peter@the-baradas.com> writes:
> For ColdFire(at least on the newer cores), the immediate add is
> faster(but larger) than the moveq/add.
OK, then we don't want to use this for Coldfire. But I suspect that
we do want to use it for 680x0.
> If there are data registers
> available, will this peephole(if matched multiple times in a block for
> the *same* constant), create more than one constant register loaded
> with moveq, or is the compiler smart enough to coalesce them together?
The compiler might coalesce them together. It's not impossible,
though it's not likely to do a great job on it. You'll have to see.
Ian
More information about the Gcc
mailing list