[Mlir-commits] [mlir] [MLIR][XeVM] Add xevm.extf op as the inverse of xevm.truncf (PR #203124)

Artem Kroviakov llvmlistbot at llvm.org
Thu Jun 11 05:28:14 PDT 2026


================
@@ -377,6 +377,26 @@ LogicalResult TruncfOp::verify() {
   return success();
 }
 
+LogicalResult ExtfOp::verify() {
+  Type srcTy = getSrc().getType();
+  Type dstTy = getDst().getType();
+  if (isa<VectorType>(srcTy) && !isa<VectorType>(dstTy))
----------------
akroviakov wrote:

So if `srcTy` is not a vector, it always passes the check? Wouldn't `!=` be a better check here instead of `&& !`?

https://github.com/llvm/llvm-project/pull/203124


More information about the Mlir-commits mailing list