__GCC_HAVE_SYNC_COMPARE_AND_SWAP_16 not defined on aarch64
Toebs Douglass
toby@winterflaw.net
Tue Jun 27 21:58:00 GMT 2017
On 27/06/17 23:53, Richard Earnshaw wrote:
> This is correct. AArch64 cannot do the 16-byte atomic compare and swap
> and needs lock operations.
I may be completely wrong, but I think it can.
ARM (32-bit) supported double-word LL/SC from arm6k and armv8 I think
had it from day one. CAS is mapped onto LL/SC.
I've written asm to do this, the key is the ldxp and stxp instruction,
and it seems to work.
More information about the Gcc-help
mailing list