================
@@ -3172,9 +3187,10 @@ bool SPIRVInstructionSelector::selectFloatDot(Register
ResVReg,
[[maybe_unused]] SPIRVTypeInst VecType =
GR.getSPIRVTypeForVReg(I.getOperand(2).getReg());
- assert(VecType->getOpcode() == SPIRV::OpTypeVector &&
- GR.getScalarOrVectorComponentCount(VecType) > 1 &&
- "dot product requires a vector of at least 2 components");
+ assert((VecType->getOpcode() == SPIRV::OpTypeVector &&
+ GR.getScalarOrVectorComponentCount(VecType) > 1) ||
+ VecType->getOpcode() == SPIRV::OpTypeVectorIdEXT &&
+ "dot product requires a vector of at least 2 components");
----------------
maarquitos14 wrote:
The message seems a bit misleading now. We accept vectors of 1 component if the
extension is enabled.
https://github.com/llvm/llvm-project/pull/210279
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits