https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108659
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Niall Douglas from comment #3) > You may be interested in reading https://reviews.llvm.org/D110069. It wanted > to have LLVM generate a 128 bit AArch64 CAS for atomics. LLVM merged that > change, it'll be in the next release. Using CAS for atomic load is not valid thing to do ... Because atomic load from constant rodata needs to work. LLVM breaks this case as they don't care about it. GCC does though.