public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/100266] New: [RISCV] Provide programmatic implementation of CAS
@ 2021-04-26 12:14 christophm30 at gmail dot com
  2021-04-26 12:47 ` [Bug target/100266] " christophm30 at gmail dot com
  2021-05-06  1:20 ` cvs-commit at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: christophm30 at gmail dot com @ 2021-04-26 12:14 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 100266
           Summary: [RISCV] Provide programmatic implementation of CAS
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: christophm30 at gmail dot com
  Target Milestone: ---

At the moment CAS is implemented in form of a hard-coded sequence in sync.md.
When implementing this in a programmatic way (i.e. in riscv.c) we can make this
code much more maintainable. Moving this into C-code also allows to properly
emit the proper fences for ensuring the required memory ordering.

To do so we need to basically do the following:
* model LR and SC INSNs
* implement riscv_expand_compare_and_swap () in riscv.c

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

end of thread, other threads:[~2021-05-06  1:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-26 12:14 [Bug target/100266] New: [RISCV] Provide programmatic implementation of CAS christophm30 at gmail dot com
2021-04-26 12:47 ` [Bug target/100266] " christophm30 at gmail dot com
2021-05-06  1:20 ` cvs-commit 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).