Re: [AArch64][PATCH 5/5] Use atomic load-operate instructions for update-fetch patterns.

2015-09-21 Thread James Greenhalgh
On Mon, Sep 21, 2015 at 12:40:32PM +0100, Matthew Wahab wrote: > On 17/09/15 17:54, Matthew Wahab wrote: > > ARMv8.1 adds atomic swap and atomic load-operate instructions with > > optional memory ordering specifiers. This patch uses the ARMv8.1 > > load-operate instructions to implement the atomic_

Re: [AArch64][PATCH 5/5] Use atomic load-operate instructions for update-fetch patterns.

2015-09-21 Thread Matthew Wahab
On 17/09/15 17:54, Matthew Wahab wrote: ARMv8.1 adds atomic swap and atomic load-operate instructions with optional memory ordering specifiers. This patch uses the ARMv8.1 load-operate instructions to implement the atomic__fetch patterns. The approach is to use the atomic load-operate instructio

Re: [AArch64][PATCH 5/5] Use atomic load-operate instructions for update-fetch patterns.

2015-09-18 Thread Ramana Radhakrishnan
Hi Andrew, >> >> Tested the series for aarch64-none-linux-gnu with native bootstrap and >> make check. Also tested for aarch64-none-elf with cross-compiled >> check-gcc on an ARMv8.1 emulator with +lse enabled by default. > > > Are you going to add some builtins for MIN/MAX support too? The AC

Re: [AArch64][PATCH 5/5] Use atomic load-operate instructions for update-fetch patterns.

2015-09-17 Thread Andrew Pinski
On Thu, Sep 17, 2015 at 9:54 AM, Matthew Wahab wrote: > Hello, > > ARMv8.1 adds atomic swap and atomic load-operate instructions with > optional memory ordering specifiers. This patch uses the ARMv8.1 > load-operate instructions to implement the atomic__fetch patterns. > > The approach is to use t

[AArch64][PATCH 5/5] Use atomic load-operate instructions for update-fetch patterns.

2015-09-17 Thread Matthew Wahab
Hello, ARMv8.1 adds atomic swap and atomic load-operate instructions with optional memory ordering specifiers. This patch uses the ARMv8.1 load-operate instructions to implement the atomic__fetch patterns. The approach is to use the atomic load-operate instruction to atomically load the data and