This is the mail archive of the gcc@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]

Re: gcc-3.4.0 fails for ColdFire(does not satisfy constraints)


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


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