@@ -5,10 +5,10 @@ func.func @single_concat(%arg0: tensor<1x1x7x7xf32>) -> tensor<1x2x7x7xf32> {
55 return %0 : tensor <1 x2 x7 x7 xf32 >
66}
77
8- // CHECK-LABEL: func.func @single_concat(
9- // CHECK-SAME: %[[VAL_0:.* ]]: tensor<1x1x7x7xf32>) -> tensor<1x2x7x7xf32> {
10- // CHECK: %[[VAL_1:.* ]] = tosa.concat %[[VAL_0]], %[[VAL_0]] {axis = 1 : i32 } : (tensor<1x1x7x7xf32>, tensor<1x1x7x7xf32>) -> tensor<1x2x7x7xf32>
11- // CHECK: return %[[VAL_1 ]] : tensor<1x2x7x7xf32>
8+ // CHECK-LABEL: func.func @single_concat
9+ // CHECK-SAME: ([[PARAM_0_:%.+ ]]: tensor<1x1x7x7xf32>) -> tensor<1x2x7x7xf32> {
10+ // CHECK: [[VAR_0_:%.+ ]] = tosa.tile [[PARAM_0_]] {multiples = array<i64: 1, 2, 1, 1> } : (tensor<1x1x7x7xf32>) -> tensor<1x2x7x7xf32>
11+ // CHECK: return [[VAR_0_ ]] : tensor<1x2x7x7xf32>
1212// CHECK: }
1313
1414// -----
@@ -19,11 +19,11 @@ func.func @concat_different_axis(%arg0: tensor<1x1x7x7xf32>) -> tensor<2x2x7x7xf
1919 return %1 : tensor <2 x2 x7 x7 xf32 >
2020}
2121
22- // CHECK-LABEL: func.func @concat_different_axis(
23- // CHECK-SAME: %[[VAL_0:.* ]]: tensor<1x1x7x7xf32>) -> tensor<2x2x7x7xf32> {
24- // CHECK: %[[VAL_1:.* ]] = tosa.concat %[[VAL_0]], %[[VAL_0]] {axis = 1 : i32 } : (tensor<1x1x7x7xf32>, tensor<1x1x7x7xf32>) -> tensor<1x2x7x7xf32>
25- // CHECK: %[[VAL_2:.* ]] = tosa.concat %[[VAL_1]], %[[VAL_1]] {axis = 0 : i32 } : (tensor<1x2x7x7xf32>, tensor<1x2x7x7xf32>) -> tensor<2x2x7x7xf32>
26- // CHECK: return %[[VAL_2 ]] : tensor<2x2x7x7xf32>
22+ // CHECK-LABEL: func.func @concat_different_axis
23+ // CHECK-SAME: ([[PARAM_0_:%.+ ]]: tensor<1x1x7x7xf32>) -> tensor<2x2x7x7xf32> {
24+ // CHECK: [[VAR_0_:%.+ ]] = tosa.tile [[PARAM_0_]] {multiples = array<i64: 1, 2, 1, 1> } : (tensor<1x1x7x7xf32>) -> tensor<1x2x7x7xf32>
25+ // CHECK: [[VAR_1_:%.+ ]] = tosa.tile [[VAR_0_]] {multiples = array<i64: 2, 1, 1, 1> } : (tensor<1x2x7x7xf32>) -> tensor<2x2x7x7xf32>
26+ // CHECK: return [[VAR_1_ ]] : tensor<2x2x7x7xf32>
2727// CHECK: }
2828
2929// -----
@@ -84,10 +84,9 @@ func.func @partially_foldable(%arg0: tensor<1x1x8x8xf32>, %arg1: tensor<1x2x4x8x
8484 return %2 : tensor <1 x4 x8 x8 xf32 >
8585}
8686
87- // CHECK-LABEL: func.func @partially_foldable(
88- // CHECK-SAME: %[[VAL_0:.*]]: tensor<1x1x8x8xf32>,
89- // CHECK-SAME: %[[VAL_1:.*]]: tensor<1x2x4x8xf32>) -> tensor<1x4x8x8xf32> {
90- // CHECK: %[[VAL_2:.*]] = tosa.concat %[[VAL_1]], %[[VAL_1]] {axis = 2 : i32} : (tensor<1x2x4x8xf32>, tensor<1x2x4x8xf32>) -> tensor<1x2x8x8xf32>
91- // CHECK: %[[VAL_3:.*]] = tosa.concat %[[VAL_0]], %[[VAL_0]], %[[VAL_2]] {axis = 1 : i32} : (tensor<1x1x8x8xf32>, tensor<1x1x8x8xf32>, tensor<1x2x8x8xf32>) -> tensor<1x4x8x8xf32>
92- // CHECK: return %[[VAL_3]] : tensor<1x4x8x8xf32>
87+ // CHECK-LABEL: func.func @partially_foldable
88+ // CHECK-SAME: ([[PARAM_0_:%.+]]: tensor<1x1x8x8xf32>, [[PARAM_1_:%.+]]: tensor<1x2x4x8xf32>) -> tensor<1x4x8x8xf32> {
89+ // CHECK: [[VAR_0_:%.+]] = tosa.tile [[PARAM_1_]] {multiples = array<i64: 1, 1, 2, 1>} : (tensor<1x2x4x8xf32>) -> tensor<1x2x8x8xf32>
90+ // CHECK: [[VAR_1_:%.+]] = tosa.concat [[PARAM_0_]], [[PARAM_0_]], [[VAR_0_]] {axis = 1 : i32} : (tensor<1x1x8x8xf32>, tensor<1x1x8x8xf32>, tensor<1x2x8x8xf32>) -> tensor<1x4x8x8xf32>
91+ // CHECK: return [[VAR_1_]] : tensor<1x4x8x8xf32>
9392// CHECK: }
0 commit comments