[Mlir-commits] [mlir] [mlir][ArmNeon] Adds Arm Neon SMMLA, UMMLA, and USMMLA Intrinsics (PR #80511)

Andrzej Warzyński llvmlistbot at llvm.org
Tue Feb 6 08:50:17 PST 2024


================
@@ -31,3 +31,63 @@ func.func @b_has_2_rows_but_a_has_length_4(%a : vector<4xi32>, %b : vector<2x4xi
     %0 = arm_neon.2d.sdot %a, %b, %b : vector<2x4xi8>, vector<2x4xi8> to vector<4xi32>
     return %0 : vector<4xi32>
 }
+
+// -----
+
+func.func @smmla_invalid_input_types(%a: vector<16xi4>,
+                                     %b: vector<16xi4>,
+                                     %c: vector<4xi32>) -> vector<4xi32> {
+  // expected-error at +1 {{op operand #1 must be vector of 8-bit signless integer values of length 16, but got 'vector<16xi4>'}}
----------------
banach-space wrote:

Ah, now I see, thanks! Yeah, names like `%a`, `%b` and `%c` make it a bit confusing and I would rename these 😅 That's a nit, so feel free to ignore.

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


More information about the Mlir-commits mailing list