diff --git a/mlir/lib/Dialect/Vector/IR/VectorOps.cpp b/mlir/lib/Dialect/Vector/IR/VectorOps.cpp --- a/mlir/lib/Dialect/Vector/IR/VectorOps.cpp +++ b/mlir/lib/Dialect/Vector/IR/VectorOps.cpp @@ -5403,6 +5403,10 @@ return emitOpError( "expects result type to match maskable operation result type"); + if (llvm::count_if(maskableOp->getResultTypes(), + [](Type t) { return t.isa(); }) > 1) + return emitOpError("multiple vector results not supported"); + // Mask checks. Type expectedMaskType = maskableOp.getExpectedMaskType(); if (getMask().getType() != expectedMaskType)