RE: Atomic builtins questions

2012-11-29 Thread Ramana Radhakrishnan
> From: Yvan Roux [yvan.r...@linaro.org] > Sent: 25 November 2012 19:51 > To: Ramana Radhakrishnan > Cc: linaro-toolchain@lists.linaro.org > Subject: Re: Atomic builtins questions > > That is correct. The addresses need to be aligned as per the restrictions in > > the architecture. Yes we could h

RE: ARMv8 load acquire / store release question

2012-11-29 Thread Ramana Radhakrishnan
Yvan, LDAR is intended for an atomic load acquire. See http://gcc.gnu.org/ml/gcc-patches/2012-11/msg01397.html for compiler support upstream. regards, Ramana > -Original Message- > From: linaro-toolchain-boun...@lists.linaro.org [mailto:linaro- > toolchain-boun...@lists.linaro.org] O

ARMv8 load acquire / store release question

2012-11-29 Thread Yvan Roux
Hi, I'm working on the libatomic-ops (part of the Boehm gc) AArch64 support, I mainly use GCC's __atomic builtins to do this, but in our 4.7 version they don't use the load acquire / store release instructions now available in the ARMv8 ISA. These instructions are used in the mainline GCC (in atom