https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104688

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 52517
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52517&action=edit
gcc12-pr104688.patch

Untested patch to handle it so far on the libatomic side only.
Not sure about what exactly to use for 16-byte __atomic_store_n, for 8-byte
we use a store for relaxed and xchg for seq_cst (haven't checked other models),
we don't have any xchg, so I'm using vmovdqa + mfence, but am not sure if that
is fastest.

Reply via email to