Re: [PATCH 11/23] make atomic_read() and atomic_set() behavior consistent on m32r

From: Valdis . Kletnieks
Date: Thu Aug 23 2007 - 16:41:42 EST


On Thu, 23 Aug 2007 21:29:41 +0200, Segher Boessenkool said:
> int f(atomic_t *x)
> {
> return atomic_read(x) + atomic_read(x);
> }

> ld r0,@r0
> slli r0,#1
> jmp lr

Looks like peephole optimization at work.

Attachment: pgp00000.pgp
Description: PGP signature