// RUN: npcomp-opt <%s -pass-pipeline=e2e-lowering-pipeline | FileCheck %s --dump-input=fail // RUN: npcomp-opt <%s -pass-pipeline=e2e-lowering-pipeline{optimize} | FileCheck %s --dump-input=fail // This is the simplest case, which is easy to stare at for debugging // purposes. // CHECK-LABEL: func @rank1 func @rank1(%arg0: tensor, %arg1: tensor) -> tensor { %0 = "tcf.add"(%arg0, %arg1) : (tensor, tensor) -> tensor return %0 : tensor } // ----- // CHECK-LABEL: func @multiple_ops func @multiple_ops(%arg0: tensor, %arg1: tensor, %arg2: tensor) -> tensor { %0 = "tcf.add"(%arg1, %arg2) : (tensor, tensor) -> tensor %1 = "tcf.add"(%arg0, %0) : (tensor, tensor) -> tensor return %1 : tensor }