bolt/deps/llvm-18.1.8/mlir/test/Conversion/TosaToTensor/tosa-to-tensor-invalid.mlir
2025-02-14 19:21:04 +01:00

8 lines
453 B
MLIR

// RUN: mlir-opt --split-input-file -pass-pipeline="builtin.module(func.func(tosa-to-tensor))" %s -verify-diagnostics
// CHECK-LABEL: @slice_resultType_unranked
func.func @slice_resultType_unranked(%arg0: tensor<?xf32>) -> (tensor<*xf32>) {
// expected-error@+1 {{failed to legalize operation 'tosa.slice'}}
%0 = "tosa.slice"(%arg0) {start = array<i64: 2>, size = array<i64: 0>} : (tensor<?xf32>) -> (tensor<*xf32>)
return %0 : tensor<*xf32>
}