[llvm] [llvm][RISCV] Support Zvfbfa codegen for fneg, fabs and copysign (PR #166944)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 7 09:52:32 PST 2025
================
@@ -7245,7 +7315,13 @@ static bool isPromotedOpNeedingSplit(SDValue Op,
return (Op.getValueType() == MVT::nxv32f16 &&
(Subtarget.hasVInstructionsF16Minimal() &&
!Subtarget.hasVInstructionsF16())) ||
- Op.getValueType() == MVT::nxv32bf16;
+ (Op.getValueType() == MVT::nxv32bf16 &&
+ Subtarget.hasVInstructionsBF16Minimal() &&
+ (!Subtarget.hasVInstructionsBF16() ||
+ (std::find(std::begin(ZvfbfaOps), std::end(ZvfbfaOps),
----------------
topperc wrote:
`llvm::contains`
https://github.com/llvm/llvm-project/pull/166944
More information about the llvm-commits
mailing list