]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Add Types to Un-Typed Sync Instructions:
authorEdwin Lu <ewlu@rivosinc.com>
Fri, 25 Aug 2023 23:35:43 +0000 (16:35 -0700)
committerEdwin Lu <ewlu@rivosinc.com>
Fri, 25 Aug 2023 23:35:43 +0000 (16:35 -0700)
commitdf177510665c4e1045bdaadf10d837f1bdc4ea06
treed5c73cccf078c862d879a98949b99becb0800f2b
parente1f096a3cc96c71907cfbc7b8baf67a3d863cb6d
RISC-V: Add Types to Un-Typed Sync Instructions:

Updates the sync instructions to ensure that no insn is left without
a type attribute. Updates a total of 9 insns to have type "atomic"
or type "multi" based on number of assembly instructions generated

Tested for regressions using rv32/64 multilib with newlib/linux.

gcc/Changelog:

* config/riscv/sync-rvwmo.md: updated types to "multi" or
"atomic" based on number of assembly lines generated
* config/riscv/sync-ztso.md: likewise
* config/riscv/sync.md: likewise

Reviewed-by: Jeff Law <jlaw@ventanamicro.com>
Signed-off-by: Edwin Lu <ewlu@rivosinc.com>
gcc/config/riscv/sync-rvwmo.md
gcc/config/riscv/sync-ztso.md
gcc/config/riscv/sync.md