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:
pgp3JI5wgyWMo.pgp
Description: PGP signature
- References:
- [PATCH 0/23] make atomic_read() and atomic_set() behavior consistent across all architectures
- From: Chris Snook <[email protected]>
- [PATCH 11/23] make atomic_read() and atomic_set() behavior consistent on m32r
- From: Chris Snook <[email protected]>
- Re: [PATCH 11/23] make atomic_read() and atomic_set() behavior consistent on m32r
- From: Hirokazu Takata <[email protected]>
- Re: [PATCH 11/23] make atomic_read() and atomic_set() behavior consistent on m32r
- From: Hirokazu Takata <[email protected]>
- Re: [PATCH 11/23] make atomic_read() and atomic_set() behavior consistent on m32r
- From: Chris Snook <[email protected]>
- Re: [PATCH 11/23] make atomic_read() and atomic_set() behavior consistent on m32r
- From: Segher Boessenkool <[email protected]>
- Re: [PATCH 11/23] make atomic_read() and atomic_set() behavior consistent on m32r
- From: Linus Torvalds <[email protected]>
- Re: [PATCH 11/23] make atomic_read() and atomic_set() behavior consistent on m32r
- From: Segher Boessenkool <[email protected]>
- [PATCH 0/23] make atomic_read() and atomic_set() behavior consistent across all architectures
- Prev by Date: RE: "double" hpet clocksource && hard freeze [bisected]
- Next by Date: Re: x86_64-dynticks-disable-hpet_id_legsup-hpets.patch hangs the system
- Previous by thread: RE: [PATCH 11/23] make atomic_read() and atomic_set() behavior consistent on m32r
- Next by thread: Re: [PATCH 11/23] make atomic_read() and atomic_set() behavior consistent on m32r
- Index(es):