[llvm] [RISCV][ISel] Add codegen support for the experimental zabha extension (PR #80192)

James Y Knight via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 9 15:45:12 PST 2024


================
@@ -629,7 +629,10 @@ RISCVTargetLowering::RISCVTargetLowering(const TargetMachine &TM,
 
   if (Subtarget.hasStdExtA()) {
     setMaxAtomicSizeInBitsSupported(Subtarget.getXLen());
-    setMinCmpXchgSizeInBits(32);
+    if (Subtarget.hasStdExtZabha())
+      setMinCmpXchgSizeInBits(8);
----------------
jyknight wrote:

ctopper fixed in #80947, so this should be fine to change to `Subtarget.hasStdExtZabha && Subtarget.hasStdExtZacas()` now.

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


More information about the llvm-commits mailing list