public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcc/108891] New: libatomic: AArch64 SEQ_CST 16-byte load missing barrier
@ 2023-02-22 18:48 wilco at gcc dot gnu.org
  2023-02-23 22:13 ` [Bug libgcc/108891] " wilco at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: wilco at gcc dot gnu.org @ 2023-02-22 18:48 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 108891
           Summary: libatomic: AArch64 SEQ_CST 16-byte load missing
                    barrier
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgcc
          Assignee: unassigned at gcc dot gnu.org
          Reporter: wilco at gcc dot gnu.org
  Target Milestone: ---

LSE2 uses the following sequence for a 16-byte atomic load:

ldp     res0, res1, [x0]
dmb     ish

The AArch64 memory model allows the LDP to be reordered with an earlier STLXP
(eg. a SEQ_CST exchange), thus breaking SEQ_CST ordering.

To avoid this, atomic loads need a barrier before the LDP - either DBM ISHLD or
LDAR works.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-03-24 16:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-22 18:48 [Bug libgcc/108891] New: libatomic: AArch64 SEQ_CST 16-byte load missing barrier wilco at gcc dot gnu.org
2023-02-23 22:13 ` [Bug libgcc/108891] " wilco at gcc dot gnu.org
2023-03-24 16:51 ` cvs-commit at gcc dot gnu.org
2023-03-24 16:53 ` wilco at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).