[clang] [llvm] [RISCV][llvm] Support fixed-length vector inline assembly constraints (PR #150724)
Brandon Wu via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 25 17:08:00 PDT 2025
================
@@ -24097,12 +24122,17 @@ SDValue RISCVTargetLowering::joinRegisterPartsIntoValue(
return Val;
}
- if (ValueVT.isScalableVector() && PartVT.isScalableVector()) {
+ if ((ValueVT.isScalableVector() || ValueVT.isFixedLengthVector()) &&
+ PartVT.isScalableVector()) {
LLVMContext &Context = *DAG.getContext();
SDValue Val = Parts[0];
EVT ValueEltVT = ValueVT.getVectorElementType();
EVT PartEltVT = PartVT.getVectorElementType();
unsigned ValueVTBitSize = ValueVT.getSizeInBits().getKnownMinValue();
+ if (ValueVT.isFixedLengthVector())
+ ValueVTBitSize = getContainerForFixedLengthVector(ValueVT.getSimpleVT())
----------------
4vtomat wrote:
Oh that's because we need old ValueVT below
https://github.com/llvm/llvm-project/pull/150724
More information about the llvm-commits
mailing list