@@ -86,7 +86,7 @@ func.func @test_reshape_1d_down_s2s_explicit(%arg0: tensor<1xf32>) -> tensor<f32
8686// CHECK: %[[C0:.*]] = arith.constant 0 : index
8787// CHECK: %[[DIM:.*]] = tensor.dim %arg0, %[[C0]] : tensor<?xf32>
8888// CHECK: %[[C2:.*]] = arith.constant 2 : index
89- // CHECK: %[[VAL_0:.*]] = arith.divui %[[DIM]], %[[C2]] : index
89+ // CHECK: %[[VAL_0:.*]] = arith.divsi %[[DIM]], %[[C2]] : index
9090// CHECK: %[[EXPANDED:.*]] = tensor.expand_shape %[[ARG_0]] {{\[\[}}0, 1]] output_shape [2, %[[VAL_0]]] : tensor<?xf32> into tensor<2x?xf32>
9191// CHECK: return %[[EXPANDED]] : tensor<2x?xf32>
9292func.func @test_reshape_1d_up_d2d_auto (%arg0: tensor <?xf32 >) -> tensor <2 x?xf32 > {
@@ -135,7 +135,7 @@ func.func @test_reshape_2d_down_s2s_explicit(%arg0: tensor<2x3xf32>) -> tensor<6
135135// CHECK: %[[C0:.*]] = arith.constant 0 : index
136136// CHECK: %[[DIM:.*]] = tensor.dim %[[VAL_0]], %[[C0]] : tensor<?xf32>
137137// CHECK: %[[C2:.*]] = arith.constant 2 : index
138- // CHECK: %[[DIV:.*]] = arith.divui %[[DIM]], %[[C2]] : index
138+ // CHECK: %[[DIV:.*]] = arith.divsi %[[DIM]], %[[C2]] : index
139139// CHECK: %[[EXPANDED:.*]] = tensor.expand_shape %[[VAL_0]] {{\[\[}}0, 1]] output_shape [2, %[[DIV]]] : tensor<?xf32> into tensor<2x?xf32>
140140// CHECK: return %[[EXPANDED]] : tensor<2x?xf32>
141141func.func @test_reshape_2d_same_d2d_auto (%arg0: tensor <?x2 xf32 >) -> tensor <2 x?xf32 > {
@@ -189,7 +189,7 @@ func.func @test_reshape_2d_same_s2s_explicit(%arg0: tensor<3x2xf32>) -> tensor<2
189189// CHECK: %[[C0:.*]] = arith.constant 0 : index
190190// CHECK: %[[DIM:.*]] = tensor.dim %[[VAL_0]], %[[C0]] : tensor<?xf32>
191191// CHECK: %[[C0_0:.*]] = arith.constant 0 : index
192- // CHECK: %[[DIV:.*]] = arith.divui %[[DIM]], %[[C0_0]] : index
192+ // CHECK: %[[DIV:.*]] = arith.divsi %[[DIM]], %[[C0_0]] : index
193193// CHECK: %[[VAL_1:.*]] = tensor.expand_shape %[[VAL_0]] {{\[\[}}0, 1, 2]] output_shape [0, 3, %[[DIV]]] : tensor<?xf32> into tensor<0x3x?xf32>
194194// CHECK: %[[VAL_2:.*]] = tensor.cast %[[VAL_1]] : tensor<0x3x?xf32> to tensor<?x?x?xf32>
195195// CHECK: return %[[VAL_2]] : tensor<?x?x?xf32>
@@ -206,7 +206,7 @@ func.func @test_reshape_3d_same_d2d_auto_empty(%arg0: tensor<3x2x?xf32>) -> tens
206206// CHECK: %[[C0:.*]] = arith.constant 0 : index
207207// CHECK: %[[DIM:.*]] = tensor.dim %[[VAL_0]], %[[C0]] : tensor<?xf32>
208208// CHECK: %[[C8:.*]] = arith.constant 8 : index
209- // CHECK: %[[DIV:.*]] = arith.divui %[[DIM]], %[[C8]] : index
209+ // CHECK: %[[DIV:.*]] = arith.divsi %[[DIM]], %[[C8]] : index
210210// CHECK: %[[VAL_1:.*]] = tensor.expand_shape %[[VAL_0]] {{\[\[}}0, 1, 2]] output_shape [2, %[[DIV]], 4] : tensor<?xf32> into tensor<2x?x4xf32>
211211// CHECK: %[[VAL_2:.*]] = tensor.cast %[[VAL_1]] : tensor<2x?x4xf32> to tensor<?x?x?xf32>
212212// CHECK: return %[[VAL_2]] : tensor<?x?x?xf32>
@@ -223,7 +223,7 @@ func.func @test_reshape_3d_same_d2d_auto(%arg0: tensor<2x?x?xf32>) -> tensor<?x?
223223// CHECK: %[[C0:.*]] = arith.constant 0 : index
224224// CHECK: %[[DIM:.*]] = tensor.dim %[[VAL_0]], %[[C0]] : tensor<?xf32>
225225// CHECK: %[[C6:.*]] = arith.constant 6 : index
226- // CHECK: %[[DIV:.*]] = arith.divui %[[DIM]], %[[C6]] : index
226+ // CHECK: %[[DIV:.*]] = arith.divsi %[[DIM]], %[[C6]] : index
227227// CHECK: %[[VAL_1:.*]] = tensor.expand_shape %[[VAL_0]] {{\[\[}}0, 1, 2]] output_shape [2, 3, %[[DIV]]] : tensor<?xf32> into tensor<2x3x?xf32>
228228// CHECK: return %[[VAL_1]] : tensor<2x3x?xf32>
229229func.func @test_reshape_3d_same_d2d_auto_identity (%arg0: tensor <?x3 x4 xf32 >) -> tensor <2 x3 x?xf32 > {
@@ -239,7 +239,7 @@ func.func @test_reshape_3d_same_d2d_auto_identity(%arg0: tensor<?x3x4xf32>) -> t
239239// CHECK: %[[C0:.*]] = arith.constant 0 : index
240240// CHECK: %[[DIM:.*]] = tensor.dim %[[VAL_0]], %[[C0]] : tensor<?xf32>
241241// CHECK: %[[C6:.*]] = arith.constant 6 : index
242- // CHECK: %[[DIV:.*]] = arith.divui %[[DIM]], %[[C6]] : index
242+ // CHECK: %[[DIV:.*]] = arith.divsi %[[DIM]], %[[C6]] : index
243243// CHECK: %[[EXPANDED:.*]] = tensor.expand_shape %[[VAL_0]] {{\[\[}}0, 1, 2]] output_shape [%[[DIV]], 3, 2] : tensor<?xf32> into tensor<?x3x2xf32>
244244// CHECK: %[[VAL_2:.*]] = tensor.cast %[[EXPANDED]] : tensor<?x3x2xf32> to tensor<?x?x?xf32>
245245// CHECK: return %[[VAL_2]] : tensor<?x?x?xf32>
@@ -256,7 +256,7 @@ func.func @test_reshape_3d_same_d2d_explicit_empty(%arg0: tensor<3x2x?xf32>) ->
256256// CHECK: %[[C0:.*]] = arith.constant 0 : index
257257// CHECK: %[[DIM:.*]] = tensor.dim %[[VAL_0]], %[[C0]] : tensor<?xf32>
258258// CHECK: %[[C12:.*]] = arith.constant 12 : index
259- // CHECK: %[[DIV:.*]] = arith.divui %[[DIM]], %[[C12]] : index
259+ // CHECK: %[[DIV:.*]] = arith.divsi %[[DIM]], %[[C12]] : index
260260// CHECK: %[[EXPANDED:.*]] = tensor.expand_shape %[[VAL_0]] {{\[\[}}0, 1, 2]] output_shape [%[[DIV]], 3, 4] : tensor<?xf32> into tensor<?x3x4xf32>
261261// CHECK: %[[VAL_2:.*]] = tensor.cast %[[EXPANDED]] : tensor<?x3x4xf32> to tensor<?x?x?xf32>
262262// CHECK: return %[[VAL_2]] : tensor<?x?x?xf32>
@@ -284,7 +284,7 @@ func.func @test_reshape_3d_same_d2d_explicit_identity(%arg0: tensor<?x3x4xf32>)
284284// CHECK: %[[C0:.*]] = arith.constant 0 : index
285285// CHECK: %[[DIM:.*]] = tensor.dim %[[VAL_0]], %[[C0]] : tensor<?xf32>
286286// CHECK: %[[C8:.*]] = arith.constant 8 : index
287- // CHECK: %[[DIV:.*]] = arith.divui %[[DIM]], %[[C8]] : index
287+ // CHECK: %[[DIV:.*]] = arith.divsi %[[DIM]], %[[C8]] : index
288288// CHECK: %[[EXPANDED:.*]] = tensor.expand_shape %[[VAL_0]] {{\[\[}}0, 1, 2]] output_shape [2, %[[DIV]], 4] : tensor<?xf32> into tensor<2x?x4xf32>
289289// CHECK: %[[VAL_2:.*]] = tensor.cast %[[EXPANDED]] : tensor<2x?x4xf32> to tensor<2x3x4xf32>
290290// CHECK: return %[[VAL_2]] : tensor<2x3x4xf32>
@@ -301,7 +301,7 @@ func.func @test_reshape_3d_same_d2s_auto(%arg0: tensor<?x?x?xf32>) -> tensor<2x3
301301// CHECK: %[[C0:.*]] = arith.constant 0 : index
302302// CHECK: %[[DIM:.*]] = tensor.dim %[[VAL_0]], %[[C0]] : tensor<?xf32>
303303// CHECK: %[[C12:.*]] = arith.constant 12 : index
304- // CHECK: %[[DIV:.*]] = arith.divui %[[DIM]], %[[C12]] : index
304+ // CHECK: %[[DIV:.*]] = arith.divsi %[[DIM]], %[[C12]] : index
305305// CHECK: %[[EXPANDED:.*]] = tensor.expand_shape %[[VAL_0]] {{\[\[}}0, 1, 2]] output_shape [%[[DIV]], 3, 4] : tensor<?xf32> into tensor<?x3x4xf32>
306306// CHECK: %[[VAL_2:.*]] = tensor.cast %[[EXPANDED]] : tensor<?x3x4xf32> to tensor<2x3x4xf32>
307307// CHECK: return %[[VAL_2]] : tensor<2x3x4xf32>
@@ -328,7 +328,7 @@ func.func @test_reshape_3d_same_s2s_explicit_identity(%arg0: tensor<2x3x4xf32>)
328328// CHECK: %[[C0:.*]] = arith.constant 0 : index
329329// CHECK: %[[DIM:.*]] = tensor.dim %[[COLLAPSED]], %[[C0]] : tensor<?xf32>
330330// CHECK: %[[C6:.*]] = arith.constant 6 : index
331- // CHECK: %[[VAL_0:.*]] = arith.divui %[[DIM]], %[[C6]] : index
331+ // CHECK: %[[VAL_0:.*]] = arith.divsi %[[DIM]], %[[C6]] : index
332332// CHECK: %[[EXPANDED:.*]] = tensor.expand_shape %[[COLLAPSED]] {{\[\[}}0, 1, 2, 3]] output_shape [%[[VAL_0]], 3, 2, 1] : tensor<?xf32> into tensor<?x3x2x1xf32>
333333// CHECK: %[[CAST:.*]] = tensor.cast %[[EXPANDED]] : tensor<?x3x2x1xf32> to tensor<1x3x2x1xf32>
334334// CHECK: return %[[CAST]] : tensor<1x3x2x1xf32>
@@ -357,7 +357,7 @@ func.func @test_reshape_4d_down_d2s_explicit(%arg0: tensor<?x?x?x?xf32>) -> tens
357357// CHECK: %[[C0:.*]] = arith.constant 0 : index
358358// CHECK: %[[DIM:.*]] = tensor.dim %[[COLLAPSED]], %[[C0]] : tensor<?xf32>
359359// CHECK: %[[C6:.*]] = arith.constant 6 : index
360- // CHECK: %[[VAL_0:.*]] = arith.divui %[[DIM]], %[[C6]] : index
360+ // CHECK: %[[VAL_0:.*]] = arith.divsi %[[DIM]], %[[C6]] : index
361361// CHECK: %[[EXPANDED:.*]] = tensor.expand_shape %[[COLLAPSED]] {{\[\[}}0, 1, 2]] output_shape [%[[VAL_0]], 2, 3] : tensor<?xf32> into tensor<?x2x3xf32>
362362// CHECK: return %[[EXPANDED]] : tensor<?x2x3xf32>
363363func.func @test_reshape_5d_down_d2d_auto (%arg0: tensor <?x?x?x2 x3 xf32 >) -> tensor <?x2 x3 xf32 > {
@@ -373,7 +373,7 @@ func.func @test_reshape_5d_down_d2d_auto(%arg0: tensor<?x?x?x2x3xf32>) -> tensor
373373// CHECK: %[[C0:.*]] = arith.constant 0 : index
374374// CHECK: %[[DIM:.*]] = tensor.dim %[[COLLAPSED]], %[[C0]] : tensor<?xf32>
375375// CHECK: %[[C385:.*]] = arith.constant 385 : index
376- // CHECK: %[[VAL_0:.*]] = arith.divui %[[DIM]], %[[C385]] : index
376+ // CHECK: %[[VAL_0:.*]] = arith.divsi %[[DIM]], %[[C385]] : index
377377// CHECK: %[[EXPANDED:.*]] = tensor.expand_shape %[[COLLAPSED]] {{\[\[}}0, 1, 2]] output_shape [%[[VAL_0]], 5, 77] : tensor<?xf32> into tensor<?x5x77xf32>
378378// CHECK: return %[[EXPANDED]] : tensor<?x5x77xf32>
379379func.func @test_reshape_6d_down_d2d_auto (%arg0: tensor <1 x2 x?x5 x7 x11 xf32 >) -> tensor <?x5 x77 xf32 > {
0 commit comments