[llvm] [RISCV][ISel] Add codegen support for the experimental zabha extension (PR #80192)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 9 16:13:07 PST 2024
================
@@ -19512,8 +19515,13 @@ RISCVTargetLowering::shouldExpandAtomicRMWInIR(AtomicRMWInst *AI) const {
return AtomicExpansionKind::None;
unsigned Size = AI->getType()->getPrimitiveSizeInBits();
- if (Size == 8 || Size == 16)
- return AtomicExpansionKind::MaskedIntrinsic;
+ if (Size == 8 || Size == 16) {
+ if (!Subtarget.hasStdExtZabha())
+ return AtomicExpansionKind::MaskedIntrinsic;
+ if (AI->getOperation() == AtomicRMWInst::Nand)
----------------
topperc wrote:
That's still wrong :(
https://github.com/llvm/llvm-project/pull/80192
More information about the llvm-commits
mailing list