2020-05-07 09:41:54 +08:00
|
|
|
// RUN: npcomp-opt <%s | FileCheck %s --dump-input=fail
|
|
|
|
|
2020-07-11 08:31:24 +08:00
|
|
|
// CHECK-LABEL: tcp.global @foo dense<0.0{{.*}}> : tensor<10xf32>
|
|
|
|
tcp.global @foo dense<0.0> : tensor<10xf32>
|
|
|
|
|
2020-05-07 09:41:54 +08:00
|
|
|
func @f(%arg0: tensor<?xf32>, %arg1: tensor<?xf32>, %arg2: i32) {
|
|
|
|
// CHECK: tcp.add
|
2020-05-15 06:19:37 +08:00
|
|
|
%0 = "tcp.add"(%arg0, %arg1) : (tensor<?xf32>, tensor<?xf32>) -> tensor<?xf32>
|
2020-07-11 08:31:24 +08:00
|
|
|
%1 = tcp.get_global_memref @foo : memref<10xf32>
|
2020-05-07 09:41:54 +08:00
|
|
|
return
|
2020-05-15 06:19:37 +08:00
|
|
|
}
|