[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:13 PST 2024
================
@@ -19627,6 +19635,8 @@ Value *RISCVTargetLowering::emitMaskedAtomicRMWIntrinsic(
Builder.CreateCall(LrwOpScwLoop, {AlignedAddr, Incr, Mask, Ordering});
}
+ if (Subtarget.hasStdExtZabha())
+ return Builder.CreateTrunc(Result, AI->getValOperand()->getType());
----------------
jyknight wrote:
This can go away with fix to setMinCmpXchgSizeInBits, I think.
https://github.com/llvm/llvm-project/pull/80192
More information about the llvm-commits
mailing list