diff --git a/mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td b/mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td --- a/mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td +++ b/mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td @@ -1013,7 +1013,7 @@ def Tosa_LogicalNotOp : Tosa_Op<"logical_not", [ DeclareOpInterfaceMethods, - NoSideEffect]> { + NoSideEffect, SameOperandsAndResultType]> { let summary = "Returns the truth value of NOT x element-wise."; let description = [{ diff --git a/mlir/test/Dialect/Tosa/tosa-infer-shapes.mlir b/mlir/test/Dialect/Tosa/tosa-infer-shapes.mlir --- a/mlir/test/Dialect/Tosa/tosa-infer-shapes.mlir +++ b/mlir/test/Dialect/Tosa/tosa-infer-shapes.mlir @@ -106,15 +106,6 @@ // ----- -// CHECK-LABEL: @test_unary_i1 -func.func @test_unary_i1(%arg0 : tensor<4xi1>) -> () { - // CHECK: "tosa.logical_not"(%arg0) : (tensor<4xi1>) -> tensor<4xi1> - %0 = "tosa.logical_not"(%arg0) : (tensor<4xi1>) -> tensor<*xi1> - return -} - -// ----- - // CHECK-LABEL: @test_binary_scalar_f32 func.func @test_binary_scalar_f32(%arg0 : tensor<4xf32>, %arg1 : tensor) -> () { // CHECK: "tosa.add"(%arg0, %arg1) : (tensor<4xf32>, tensor) -> tensor<4xf32>