[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <571A57E0.1040704@twiddle.net>
Date: Fri, 22 Apr 2016 09:57:04 -0700
From: Richard Henderson <rth@...ddle.net>
To: Peter Zijlstra <peterz@...radead.org>,
torvalds@...ux-foundation.org, mingo@...nel.org,
tglx@...utronix.de, will.deacon@....com,
paulmck@...ux.vnet.ibm.com, boqun.feng@...il.com,
waiman.long@....com, fweisbec@...il.com
Cc: linux-kernel@...r.kernel.org, linux-arch@...r.kernel.org,
vgupta@...opsys.com, linux@....linux.org.uk, egtvedt@...fundet.no,
realmz6@...il.com, ysato@...rs.sourceforge.jp, rkuo@...eaurora.org,
tony.luck@...el.com, geert@...ux-m68k.org, james.hogan@...tec.com,
ralf@...ux-mips.org, dhowells@...hat.com, jejb@...isc-linux.org,
mpe@...erman.id.au, schwidefsky@...ibm.com, dalias@...c.org,
davem@...emloft.net, cmetcalf@...lanox.com, jcmvbkbc@...il.com,
arnd@...db.de, dbueso@...e.de, fengguang.wu@...el.com
Subject: Re: [RFC][PATCH 02/31] locking,alpha: Implement
atomic{,64}_fetch_{add,sub,and,andnot,or,xor}()
On 04/22/2016 02:04 AM, Peter Zijlstra wrote:
> + "1: ldl_l %0,%1\n" \
> + " mov %0,%2\n" \
> + " " #asm_op " %0,%3,%0\n" \
> + " stl_c %0,%1\n" \
No need for the extra mov.
ldl_l %2,%1
asm_op %2,%3,%0
stl_c %0,%1
r~
Powered by blists - more mailing lists