@@ -12,11 +12,11 @@ func.func @rectangular(%arg0: memref<?x?xf32>) {
12
12
// COMMON: %[[diff:.*]] = arith.subi %c44, %c2
13
13
// COMMON: %[[adjustment:.*]] = arith.subi %c1, %c1_{{.*}}
14
14
// COMMON-NEXT: %[[diff_adj:.*]] = arith.addi %[[diff]], %[[adjustment]]
15
- // COMMON-NEXT: %[[range:.*]] = arith.divsi %[[diff_adj]], %c1
15
+ // COMMON-NEXT: %[[range:.*]] = arith.divui %[[diff_adj]], %c1
16
16
17
17
// Ceildiv to get the parametric tile size.
18
18
// COMMON: %[[sum:.*]] = arith.addi %[[range]], %c6
19
- // COMMON-NEXT: %[[size:.*]] = arith.divsi %[[sum]], %c7
19
+ // COMMON-NEXT: %[[size:.*]] = arith.divui %[[sum]], %c7
20
20
// New outer step (original is %c1).
21
21
// COMMON-NEXT: %[[step:.*]] = arith.muli %c1, %[[size]]
22
22
@@ -26,11 +26,11 @@ func.func @rectangular(%arg0: memref<?x?xf32>) {
26
26
// TILE_74: %[[diff2:.*]] = arith.subi %c44, %c1
27
27
// TILE_74: %[[adjustment2:.*]] = arith.subi %c2, %c1_{{.*}}
28
28
// TILE_74-NEXT: %[[diff2_adj:.*]] = arith.addi %[[diff2]], %[[adjustment2]]
29
- // TILE_74-NEXT: %[[range2:.*]] = arith.divsi %[[diff2_adj]], %c2
29
+ // TILE_74-NEXT: %[[range2:.*]] = arith.divui %[[diff2_adj]], %c2
30
30
31
31
// Ceildiv to get the parametric tile size for the second original scf.
32
32
// TILE_74: %[[sum2:.*]] = arith.addi %[[range2]], %c3
33
- // TILE_74-NEXT: %[[size2:.*]] = arith.divsi %[[sum2]], %c4
33
+ // TILE_74-NEXT: %[[size2:.*]] = arith.divui %[[sum2]], %c4
34
34
// New inner step (original is %c2).
35
35
// TILE_74-NEXT: %[[step2:.*]] = arith.muli %c2, %[[size2]]
36
36
@@ -76,11 +76,11 @@ func.func @triangular(%arg0: memref<?x?xf32>) {
76
76
// COMMON: %[[diff:.*]] = arith.subi %c44, %c2
77
77
// COMMON: %[[adjustment:.*]] = arith.subi %c1, %c1_{{.*}}
78
78
// COMMON-NEXT: %[[diff_adj:.*]] = arith.addi %[[diff]], %[[adjustment]]
79
- // COMMON-NEXT: %[[range:.*]] = arith.divsi %[[diff_adj]], %c1
79
+ // COMMON-NEXT: %[[range:.*]] = arith.divui %[[diff_adj]], %c1
80
80
81
81
// Ceildiv to get the parametric tile size.
82
82
// COMMON: %[[sum:.*]] = arith.addi %[[range]], %c6
83
- // COMMON-NEXT: %[[size:.*]] = arith.divsi %[[sum]], %c7
83
+ // COMMON-NEXT: %[[size:.*]] = arith.divui %[[sum]], %c7
84
84
// New outer step (original is %c1).
85
85
// COMMON-NEXT: %[[step:.*]] = arith.muli %c1, %[[size]]
86
86
@@ -95,11 +95,11 @@ func.func @triangular(%arg0: memref<?x?xf32>) {
95
95
// where step is known to be %c2.
96
96
// TILE_74: %[[diff2:.*]] = arith.subi %[[i]], %c1
97
97
// TILE_74-NEXT: %[[diff2_adj:.*]] = arith.addi %[[diff2]], %[[adjustment2]]
98
- // TILE_74-NEXT: %[[range2:.*]] = arith.divsi %[[diff2_adj]], %c2
98
+ // TILE_74-NEXT: %[[range2:.*]] = arith.divui %[[diff2_adj]], %c2
99
99
100
100
// Ceildiv to get the parametric tile size for the second original scf.
101
101
// TILE_74: %[[sum2:.*]] = arith.addi %[[range2]], %c3
102
- // TILE_74-NEXT: %[[size2:.*]] = arith.divsi %[[sum2]], %c4
102
+ // TILE_74-NEXT: %[[size2:.*]] = arith.divui %[[sum2]], %c4
103
103
// New inner step (original is %c2).
104
104
// TILE_74-NEXT: %[[step2:.*]] = arith.muli %c2, %[[size2]]
105
105
0 commit comments