[Mlir-commits] [mlir] [mlir][SVE] Add more e2e test for vector.contract (PR #70367)

Benjamin Maxwell llvmlistbot at llvm.org
Fri Oct 27 03:31:34 PDT 2023


================
@@ -30,6 +56,65 @@
   iterator_types = ["parallel", "parallel", "reduction"]
 }
 
+// Contraction: dot-product a x b.
+func.func @dot_product_i32() {
+  %acc = arith.constant 0: i32
+
+  %vector_a = arith.constant dense<123> : vector<[4]xi32>
+  %vector_b = arith.constant dense<314> : vector<[4]xi32>
+  %vector_c = arith.constant dense<0> : vector<[4]xi32>
+
+  // The result of this dot-product will depend
+  // on the vector length, so we are unable to verify it.
----------------
MacDue wrote:

Also this comment is now outdated :)

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


More information about the Mlir-commits mailing list