[clang] [llvm] [RISCV][LLVM] Enable atomics for 'Zalrsc' (PR #163672)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 20 11:42:15 PDT 2025
================
@@ -308,7 +308,65 @@ class PseudoMaskedAMOMinMaxPat<Intrinsic intrin, Pseudo AMOInst>
(AMOInst GPR:$addr, GPR:$incr, GPR:$mask, GPR:$shiftamt,
timm:$ordering)>;
-let Predicates = [HasStdExtA] in {
+let Predicates = [HasStdExtZalrsc, NoStdExtZaamo] in {
----------------
topperc wrote:
There is a comment around line 161 above where `HasAtomicLdSt` is used that says `Atomic load/store are available under both +a and +force-atomics.`. This comment needs to be updated to +zalrsc
https://github.com/llvm/llvm-project/pull/163672
More information about the llvm-commits
mailing list