torch-mlir/test/Dialect/TCP/ops.mlir

11 lines
338 B
MLIR
Raw Normal View History

// RUN: npcomp-opt <%s | FileCheck %s --dump-input=fail
func @f(%arg0: tensor<?xf32>, %arg1: tensor<?xf32>, %arg2: i32) {
// CHECK: tcp.add
%result = "tcp.island"() ({
%0 = "tcp.add"(%arg0, %arg1) : (tensor<?xf32>, tensor<?xf32>) -> tensor<?xf32>
"tcp.yield"(%0) : (tensor<?xf32>) -> ()
}) : () -> tensor<?xf32>
return
}