]> gcc.gnu.org Git - gcc.git/commit
RISC-V: Strengthen atomic stores
authorPatrick O'Neill <patrick@rivosinc.com>
Wed, 5 Apr 2023 16:56:33 +0000 (09:56 -0700)
committerPatrick O'Neill <patrick@rivosinc.com>
Tue, 2 May 2023 20:08:04 +0000 (13:08 -0700)
commit6a2383f47ae70c31f91775142b9fb03f697741c2
treed107f25e76ab59df6fdc4a5d3ab109adee6de51d
parenta61a067b15221de981afd4df8433e96a8cf32341
RISC-V: Strengthen atomic stores

This change makes atomic stores strictly stronger than table A.6 of the
ISA manual. This mapping makes the overall patchset compatible with
table A.7 as well.

2023-04-27 Patrick O'Neill <patrick@rivosinc.com>

PR target/89835

gcc/ChangeLog:

* config/riscv/sync.md (atomic_store<mode>): Use simple store
instruction in combination with fence(s).

gcc/testsuite/ChangeLog:

* gcc.target/riscv/pr89835.c: New test.

Signed-off-by: Patrick O'Neill <patrick@rivosinc.com>
gcc/config/riscv/sync.md
gcc/testsuite/gcc.target/riscv/pr89835.c [new file with mode: 0644]
This page took 0.056757 seconds and 6 git commands to generate.