@@ -159,7 +159,7 @@ func private @get_idx() -> (index)
159159// CHECK-NEXT: %[[v1:.*]] = muli %[[v0]], %[[cm1]] : index
160160// CHECK-NEXT: %[[c20:.*]] = constant 20 : index
161161// CHECK-NEXT: %[[v2:.*]] = addi %[[v1]], %[[c20]] : index
162- // CHECK-NEXT: %[[v3:.*]] = cmpi " sge" , %[[v2]], %[[c0]] : index
162+ // CHECK-NEXT: %[[v3:.*]] = cmpi sge, %[[v2]], %[[c0]] : index
163163// CHECK-NEXT: if %[[v3]] {
164164// CHECK-NEXT: call @body(%[[v0:.*]]) : (index) -> ()
165165// CHECK-NEXT: }
@@ -180,7 +180,7 @@ func @if_only() {
180180// CHECK-NEXT: %[[v1:.*]] = muli %[[v0]], %[[cm1]] : index
181181// CHECK-NEXT: %[[c20:.*]] = constant 20 : index
182182// CHECK-NEXT: %[[v2:.*]] = addi %[[v1]], %[[c20]] : index
183- // CHECK-NEXT: %[[v3:.*]] = cmpi " sge" , %[[v2]], %[[c0]] : index
183+ // CHECK-NEXT: %[[v3:.*]] = cmpi sge, %[[v2]], %[[c0]] : index
184184// CHECK-NEXT: if %[[v3]] {
185185// CHECK-NEXT: call @body(%[[v0:.*]]) : (index) -> ()
186186// CHECK-NEXT: } else {
@@ -205,20 +205,20 @@ func @if_else() {
205205// CHECK-NEXT: %[[v1:.*]] = muli %[[v0]], %[[cm1]] : index
206206// CHECK-NEXT: %[[c20:.*]] = constant 20 : index
207207// CHECK-NEXT: %[[v2:.*]] = addi %[[v1]], %[[c20]] : index
208- // CHECK-NEXT: %[[v3:.*]] = cmpi " sge" , %[[v2]], %[[c0]] : index
208+ // CHECK-NEXT: %[[v3:.*]] = cmpi sge, %[[v2]], %[[c0]] : index
209209// CHECK-NEXT: if %[[v3]] {
210210// CHECK-NEXT: %[[c0_0:.*]] = constant 0 : index
211211// CHECK-NEXT: %[[cm10:.*]] = constant -10 : index
212212// CHECK-NEXT: %[[v4:.*]] = addi %[[v0]], %[[cm10]] : index
213- // CHECK-NEXT: %[[v5:.*]] = cmpi " sge" , %[[v4]], %[[c0_0]] : index
213+ // CHECK-NEXT: %[[v5:.*]] = cmpi sge, %[[v4]], %[[c0_0]] : index
214214// CHECK-NEXT: if %[[v5]] {
215215// CHECK-NEXT: call @body(%[[v0:.*]]) : (index) -> ()
216216// CHECK-NEXT: }
217217// CHECK-NEXT: } else {
218218// CHECK-NEXT: %[[c0_0:.*]] = constant 0 : index
219219// CHECK-NEXT: %[[cm10:.*]] = constant -10 : index
220220// CHECK-NEXT: %{{.*}} = addi %[[v0]], %[[cm10]] : index
221- // CHECK-NEXT: %{{.*}} = cmpi " sge" , %{{.*}}, %[[c0_0]] : index
221+ // CHECK-NEXT: %{{.*}} = cmpi sge, %{{.*}}, %[[c0_0]] : index
222222// CHECK-NEXT: if %{{.*}} {
223223// CHECK-NEXT: call @mid(%[[v0:.*]]) : (index) -> ()
224224// CHECK-NEXT: }
@@ -249,22 +249,22 @@ func @nested_ifs() {
249249// CHECK-NEXT: %[[v2:.*]] = addi %[[v1]], %{{.*}} : index
250250// CHECK-NEXT: %[[c1:.*]] = constant 1 : index
251251// CHECK-NEXT: %[[v3:.*]] = addi %[[v2]], %[[c1]] : index
252- // CHECK-NEXT: %[[v4:.*]] = cmpi " sge" , %[[v3]], %[[c0]] : index
252+ // CHECK-NEXT: %[[v4:.*]] = cmpi sge, %[[v3]], %[[c0]] : index
253253// CHECK-NEXT: %[[cm1_0:.*]] = constant -1 : index
254254// CHECK-NEXT: %[[v5:.*]] = addi %{{.*}}, %[[cm1_0]] : index
255- // CHECK-NEXT: %[[v6:.*]] = cmpi " sge" , %[[v5]], %[[c0]] : index
255+ // CHECK-NEXT: %[[v6:.*]] = cmpi sge, %[[v5]], %[[c0]] : index
256256// CHECK-NEXT: %[[v7:.*]] = and %[[v4]], %[[v6]] : i1
257257// CHECK-NEXT: %[[cm1_1:.*]] = constant -1 : index
258258// CHECK-NEXT: %[[v8:.*]] = addi %{{.*}}, %[[cm1_1]] : index
259- // CHECK-NEXT: %[[v9:.*]] = cmpi " sge" , %[[v8]], %[[c0]] : index
259+ // CHECK-NEXT: %[[v9:.*]] = cmpi sge, %[[v8]], %[[c0]] : index
260260// CHECK-NEXT: %[[v10:.*]] = and %[[v7]], %[[v9]] : i1
261261// CHECK-NEXT: %[[cm1_2:.*]] = constant -1 : index
262262// CHECK-NEXT: %[[v11:.*]] = addi %{{.*}}, %[[cm1_2]] : index
263- // CHECK-NEXT: %[[v12:.*]] = cmpi " sge" , %[[v11]], %[[c0]] : index
263+ // CHECK-NEXT: %[[v12:.*]] = cmpi sge, %[[v11]], %[[c0]] : index
264264// CHECK-NEXT: %[[v13:.*]] = and %[[v10]], %[[v12]] : i1
265265// CHECK-NEXT: %[[cm42:.*]] = constant -42 : index
266266// CHECK-NEXT: %[[v14:.*]] = addi %{{.*}}, %[[cm42]] : index
267- // CHECK-NEXT: %[[v15:.*]] = cmpi "eq" , %[[v14]], %[[c0]] : index
267+ // CHECK-NEXT: %[[v15:.*]] = cmpi eq , %[[v14]], %[[c0]] : index
268268// CHECK-NEXT: %[[v16:.*]] = and %[[v13]], %[[v15]] : i1
269269// CHECK-NEXT: if %[[v16]] {
270270// CHECK-NEXT: call @body(%[[v0:.*]]) : (index) -> ()
@@ -292,7 +292,7 @@ func @if_for() {
292292// CHECK-NEXT: %[[v1:.*]] = muli %[[v0]], %[[cm1]] : index
293293// CHECK-NEXT: %[[c20:.*]] = constant 20 : index
294294// CHECK-NEXT: %[[v2:.*]] = addi %[[v1]], %[[c20]] : index
295- // CHECK-NEXT: %[[v3:.*]] = cmpi " sge" , %[[v2]], %[[c0]] : index
295+ // CHECK-NEXT: %[[v3:.*]] = cmpi sge, %[[v2]], %[[c0]] : index
296296// CHECK-NEXT: if %[[v3]] {
297297// CHECK-NEXT: %[[c0:.*]]{{.*}} = constant 0 : index
298298// CHECK-NEXT: %[[c42:.*]]{{.*}} = constant 42 : index
@@ -301,7 +301,7 @@ func @if_for() {
301301// CHECK-NEXT: %[[c0_:.*]]{{.*}} = constant 0 : index
302302// CHECK-NEXT: %[[cm10:.*]] = constant -10 : index
303303// CHECK-NEXT: %[[v4:.*]] = addi %{{.*}}, %[[cm10]] : index
304- // CHECK-NEXT: %[[v5:.*]] = cmpi " sge" , %[[v4]], %[[c0_:.*]]{{.*}} : index
304+ // CHECK-NEXT: %[[v5:.*]] = cmpi sge, %[[v4]], %[[c0_:.*]]{{.*}} : index
305305// CHECK-NEXT: if %[[v5]] {
306306// CHECK-NEXT: call @body2(%[[v0]], %{{.*}}) : (index, index) -> ()
307307 affine.if #set1 (%i ) {
@@ -318,7 +318,7 @@ func @if_for() {
318318// CHECK-NEXT: %[[c0:.*]]{{.*}} = constant 0 : index
319319// CHECK-NEXT: %[[cm10:.*]]{{.*}} = constant -10 : index
320320// CHECK-NEXT: %{{.*}} = addi %{{.*}}, %[[cm10:.*]]{{.*}} : index
321- // CHECK-NEXT: %{{.*}} = cmpi " sge" , %{{.*}}, %[[c0:.*]]{{.*}} : index
321+ // CHECK-NEXT: %{{.*}} = cmpi sge, %{{.*}}, %[[c0:.*]]{{.*}} : index
322322// CHECK-NEXT: if %{{.*}} {
323323// CHECK-NEXT: %[[c0_:.*]]{{.*}} = constant 0 : index
324324// CHECK-NEXT: %[[c42_:.*]]{{.*}} = constant 42 : index
@@ -346,11 +346,11 @@ func @if_for() {
346346// CHECK-NEXT: %[[cm1:.*]] = constant -1 : index
347347// CHECK-NEXT: %[[a:.*]] = muli %{{.*}}, %[[cm1]] : index
348348// CHECK-NEXT: %[[b:.*]] = addi %[[a]], %{{.*}} : index
349- // CHECK-NEXT: %[[c:.*]] = cmpi " sgt" , %{{.*}}, %[[b]] : index
349+ // CHECK-NEXT: %[[c:.*]] = cmpi sgt, %{{.*}}, %[[b]] : index
350350// CHECK-NEXT: %[[d:.*]] = select %[[c]], %{{.*}}, %[[b]] : index
351351// CHECK-NEXT: %[[c10:.*]] = constant 10 : index
352352// CHECK-NEXT: %[[e:.*]] = addi %{{.*}}, %[[c10]] : index
353- // CHECK-NEXT: %[[f:.*]] = cmpi " slt" , %{{.*}}, %[[e]] : index
353+ // CHECK-NEXT: %[[f:.*]] = cmpi slt, %{{.*}}, %[[e]] : index
354354// CHECK-NEXT: %[[g:.*]] = select %[[f]], %{{.*}}, %[[e]] : index
355355// CHECK-NEXT: %[[c1_0:.*]] = constant 1 : index
356356// CHECK-NEXT: for %{{.*}} = %[[d]] to %[[g]] step %[[c1_0]] {
@@ -370,22 +370,22 @@ func @loop_min_max(%N : index) {
370370
371371#map_7_values = affine_map <(d0 , d1 , d2 , d3 , d4 , d5 , d6 ) -> (d0 , d1 , d2 , d3 , d4 , d5 , d6 )>
372372
373- // Check that the "min" (cmpi " slt" + select) reduction sequence is emitted
373+ // Check that the "min" (cmpi slt + select) reduction sequence is emitted
374374// correctly for an affine map with 7 results.
375375
376376// CHECK-LABEL: func @min_reduction_tree
377377// CHECK-NEXT: %[[c0:.*]] = constant 0 : index
378- // CHECK-NEXT: %[[c01:.+]] = cmpi " slt" , %{{.*}}, %{{.*}} : index
378+ // CHECK-NEXT: %[[c01:.+]] = cmpi slt, %{{.*}}, %{{.*}} : index
379379// CHECK-NEXT: %[[r01:.+]] = select %[[c01]], %{{.*}}, %{{.*}} : index
380- // CHECK-NEXT: %[[c012:.+]] = cmpi " slt" , %[[r01]], %{{.*}} : index
380+ // CHECK-NEXT: %[[c012:.+]] = cmpi slt, %[[r01]], %{{.*}} : index
381381// CHECK-NEXT: %[[r012:.+]] = select %[[c012]], %[[r01]], %{{.*}} : index
382- // CHECK-NEXT: %[[c0123:.+]] = cmpi " slt" , %[[r012]], %{{.*}} : index
382+ // CHECK-NEXT: %[[c0123:.+]] = cmpi slt, %[[r012]], %{{.*}} : index
383383// CHECK-NEXT: %[[r0123:.+]] = select %[[c0123]], %[[r012]], %{{.*}} : index
384- // CHECK-NEXT: %[[c01234:.+]] = cmpi " slt" , %[[r0123]], %{{.*}} : index
384+ // CHECK-NEXT: %[[c01234:.+]] = cmpi slt, %[[r0123]], %{{.*}} : index
385385// CHECK-NEXT: %[[r01234:.+]] = select %[[c01234]], %[[r0123]], %{{.*}} : index
386- // CHECK-NEXT: %[[c012345:.+]] = cmpi " slt" , %[[r01234]], %{{.*}} : index
386+ // CHECK-NEXT: %[[c012345:.+]] = cmpi slt, %[[r01234]], %{{.*}} : index
387387// CHECK-NEXT: %[[r012345:.+]] = select %[[c012345]], %[[r01234]], %{{.*}} : index
388- // CHECK-NEXT: %[[c0123456:.+]] = cmpi " slt" , %[[r012345]], %{{.*}} : index
388+ // CHECK-NEXT: %[[c0123456:.+]] = cmpi slt, %[[r012345]], %{{.*}} : index
389389// CHECK-NEXT: %[[r0123456:.+]] = select %[[c0123456]], %[[r012345]], %{{.*}} : index
390390// CHECK-NEXT: %[[c1:.*]] = constant 1 : index
391391// CHECK-NEXT: for %{{.*}} = %[[c0]] to %[[r0123456]] step %[[c1]] {
@@ -478,7 +478,7 @@ func @affine_apply_mod(%arg0 : index) -> (index) {
478478// CHECK-NEXT: %[[c42:.*]] = constant 42 : index
479479// CHECK-NEXT: %[[v0:.*]] = remi_signed %{{.*}}, %[[c42]] : index
480480// CHECK-NEXT: %[[c0:.*]] = constant 0 : index
481- // CHECK-NEXT: %[[v1:.*]] = cmpi " slt" , %[[v0]], %[[c0]] : index
481+ // CHECK-NEXT: %[[v1:.*]] = cmpi slt, %[[v0]], %[[c0]] : index
482482// CHECK-NEXT: %[[v2:.*]] = addi %[[v0]], %[[c42]] : index
483483// CHECK-NEXT: %[[v3:.*]] = select %[[v1]], %[[v2]], %[[v0]] : index
484484 %0 = affine.apply #mapmod (%arg0 )
@@ -497,7 +497,7 @@ func @affine_apply_floordiv(%arg0 : index) -> (index) {
497497// CHECK-NEXT: %[[c42:.*]] = constant 42 : index
498498// CHECK-NEXT: %[[c0:.*]] = constant 0 : index
499499// CHECK-NEXT: %[[cm1:.*]] = constant -1 : index
500- // CHECK-NEXT: %[[v0:.*]] = cmpi " slt" , %{{.*}}, %[[c0]] : index
500+ // CHECK-NEXT: %[[v0:.*]] = cmpi slt, %{{.*}}, %[[c0]] : index
501501// CHECK-NEXT: %[[v1:.*]] = subi %[[cm1]], %{{.*}} : index
502502// CHECK-NEXT: %[[v2:.*]] = select %[[v0]], %[[v1]], %{{.*}} : index
503503// CHECK-NEXT: %[[v3:.*]] = divi_signed %[[v2]], %[[c42]] : index
@@ -519,7 +519,7 @@ func @affine_apply_ceildiv(%arg0 : index) -> (index) {
519519// CHECK-NEXT: %[[c42:.*]] = constant 42 : index
520520// CHECK-NEXT: %[[c0:.*]] = constant 0 : index
521521// CHECK-NEXT: %[[c1:.*]] = constant 1 : index
522- // CHECK-NEXT: %[[v0:.*]] = cmpi " sle" , %{{.*}}, %[[c0]] : index
522+ // CHECK-NEXT: %[[v0:.*]] = cmpi sle, %{{.*}}, %[[c0]] : index
523523// CHECK-NEXT: %[[v1:.*]] = subi %[[c0]], %{{.*}} : index
524524// CHECK-NEXT: %[[v2:.*]] = subi %{{.*}}, %[[c1]] : index
525525// CHECK-NEXT: %[[v3:.*]] = select %[[v0]], %[[v1]], %[[v2]] : index
@@ -624,7 +624,7 @@ func @affine_min(%arg0: index, %arg1: index) -> index{
624624 // CHECK: %[[Cm2:.*]] = constant -1
625625 // CHECK: %[[neg2:.*]] = muli %[[ARG0]], %[[Cm2:.*]]
626626 // CHECK: %[[second:.*]] = addi %[[ARG1]], %[[neg2]]
627- // CHECK: %[[cmp:.*]] = cmpi " slt" , %[[first]], %[[second]]
627+ // CHECK: %[[cmp:.*]] = cmpi slt, %[[first]], %[[second]]
628628 // CHECK: select %[[cmp]], %[[first]], %[[second]]
629629 %0 = affine.min affine_map <(d0 ,d1 ) -> (d0 - d1 , d1 - d0 )>(%arg0 , %arg1 )
630630 return %0 : index
@@ -639,7 +639,7 @@ func @affine_max(%arg0: index, %arg1: index) -> index{
639639 // CHECK: %[[Cm2:.*]] = constant -1
640640 // CHECK: %[[neg2:.*]] = muli %[[ARG0]], %[[Cm2:.*]]
641641 // CHECK: %[[second:.*]] = addi %[[ARG1]], %[[neg2]]
642- // CHECK: %[[cmp:.*]] = cmpi " sgt" , %[[first]], %[[second]]
642+ // CHECK: %[[cmp:.*]] = cmpi sgt, %[[first]], %[[second]]
643643 // CHECK: select %[[cmp]], %[[first]], %[[second]]
644644 %0 = affine.max affine_map <(d0 ,d1 ) -> (d0 - d1 , d1 - d0 )>(%arg0 , %arg1 )
645645 return %0 : index
0 commit comments