https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111416
Wilco <wilco at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from Wilco <wilco at gcc dot gnu.org> ---
Fixed by commit r14-4365-g0731889c026bfe8d55c4851422ca5ec9d037f7a0
#include <stdatomic.h>
#include <stdint.h>
int64_t f (_Atomic int64_t *p)
{
return atomic_load (p);
}
now generates with -O2 -mcpu=cortex-a15:
dmb ish
ldrd r0, r1, [r0]
dmb ish
bx lr