[Mlir-commits] [mlir] [mlir][tosa] Add concat/slice_shape ops (PR #174620)
Luke Hutton
llvmlistbot at llvm.org
Thu Jan 8 05:52:52 PST 2026
================
@@ -1690,3 +1690,32 @@ func.func @test_dim(%arg0: tensor<1x2x3x4x5x6x7x8xi32>) -> !tosa.shape<1> {
%0 = tosa.dim %arg0 {axis = 2 : i32} : (tensor<1x2x3x4x5x6x7x8xi32>) -> !tosa.shape<1>
return %0 : !tosa.shape<1>
}
+
+
+// -----
+
+func.func @test_concat_shape_invalid_list_size() {
+ %0 = tosa.const_shape {values = dense<[]> : tensor<0xindex>} : () -> !tosa.shape<0>
+ // expected-error at +1 {{'tosa.concat_shape' op failed level check for MAX_TENSOR_LIST_SIZE: input}}
----------------
lhutton1 wrote:
For posterity, PR is here: https://github.com/arm/tosa-specification/pull/29
https://github.com/llvm/llvm-project/pull/174620
More information about the Mlir-commits
mailing list