Re: [PATCH 2/3][AArch64][PR target/65697] Strengthen barriers for sync-compare-swap builtins.

2015-06-01 Thread James Greenhalgh
On Mon, Jun 01, 2015 at 01:08:15PM +0100, Matthew Wahab wrote: > On 22/05/15 09:28, Matthew Wahab wrote: > > [Added PR number and updated patches] > > > > This patch changes the code generated for __sync_type_compare_and_swap to > > > > ldxr reg; cmp; bne label; stlxr; cbnz; label: dmb ish; mov

Re: [PATCH 2/3][AArch64][PR target/65697] Strengthen barriers for sync-compare-swap builtins.

2015-06-01 Thread Matthew Wahab
On 22/05/15 09:28, Matthew Wahab wrote: [Added PR number and updated patches] This patch changes the code generated for __sync_type_compare_and_swap to ldxr reg; cmp; bne label; stlxr; cbnz; label: dmb ish; mov .., reg This removes the acquire-barrier from the load and ends the operation w

Re: [PATCH 2/3][AArch64][PR target/65697] Strengthen barriers for sync-compare-swap builtins.

2015-05-22 Thread Matthew Wahab
[Added PR number and updated patches] This patch changes the code generated for __sync_type_compare_and_swap to ldxr reg; cmp; bne label; stlxr; cbnz; label: dmb ish; mov .., reg This removes the acquire-barrier from the load and ends the operation with a fence to prevent memory references ap