Re: [PATCH][GCC][AARCH64] Use STLUR for atomic_store

2018-08-07 Thread Matthew Malcomson
Hello everyone, This is an updated patch where I've made what was a predicate into a pure C function based on some feedback outside the mailing list. Ok for trunk? Matthew gcc/ 2018-08-07  Matthew Malcomson      * config/aarch64/aarch64-protos.h    

Re: [PATCH][GCC][AARCH64] Use STLUR for atomic_store

2018-08-06 Thread Matthew Malcomson
On 03/08/18 13:18, Sudakshina Das wrote: Thank you for doing this. I am not a maintainer but I have a few nits on this patch: Thanks for the suggestions Sudi: nits have been removed, and new patch attached. Have also removed the reference to "stlur" in names as Richard suggested. New

Re: [PATCH][GCC][AARCH64] Use STLUR for atomic_store

2018-08-03 Thread Richard Earnshaw (lists)
On 02/08/18 17:26, matthew.malcom...@arm.com wrote: > Use the STLUR instruction introduced in Armv8.4-a. > This insruction has the store-release semantic like STLR but can take a > 9-bit unscaled signed immediate offset. > > Example test case: > ``` > void > foo () > { > int32_t *atomic_vals

Re: [PATCH][GCC][AARCH64] Use STLUR for atomic_store

2018-08-03 Thread Sudakshina Das
Hi Matthew On 02/08/18 17:26, matthew.malcom...@arm.com wrote: Use the STLUR instruction introduced in Armv8.4-a. This insruction has the store-release semantic like STLR but can take a 9-bit unscaled signed immediate offset. Example test case: ``` void foo () { int32_t *atomic_vals =

[PATCH][GCC][AARCH64] Use STLUR for atomic_store

2018-08-02 Thread matthew . malcomson
Use the STLUR instruction introduced in Armv8.4-a. This insruction has the store-release semantic like STLR but can take a 9-bit unscaled signed immediate offset. Example test case: ``` void foo () { int32_t *atomic_vals = calloc (4, sizeof (int32_t)); atomic_store_explicit (atomic_vals +