[clang] [llvm] [RISCV][LLVM] Enable atomics for 'Zalrsc' (PR #163672)

Alexander Richardson via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 15 22:00:18 PDT 2025


================
@@ -225,7 +225,7 @@ class LLVM_LIBRARY_VISIBILITY RISCV64TargetInfo : public RISCVTargetInfo {
   void setMaxAtomicWidth() override {
     MaxAtomicPromoteWidth = 128;
 
-    if (ISAInfo->hasExtension("a"))
+    if (ISAInfo->hasExtension("a") || ISAInfo->hasExtension("zalrsc"))
----------------
arichardson wrote:

Shouldn't a imply zalrsc?

https://github.com/llvm/llvm-project/pull/163672


More information about the cfe-commits mailing list