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: Insn for direct increment of memory?


On Saturday 24 September 2005 23:35, Greg McGary wrote:
> I'm working with a machine that has a memory-increment insn.  It's a
> network-processor performance hack that allows no-latency accumulation
> of statistical counters.  The insn sends the increment and address to
> the memory controller which does the add, avoiding the usual
> long-latency read-increment-write cycle.  I would like to persuade GCC
> to emit this insn.  Maybe it could be done in the combiner?  Do any
> GCC ports have this feature?

It should just work if you have the appropriate movsi pattern/alternative. 
m68k has an memory-increment instruction (aka add :-).

Paul


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