Skip to content

Commit 7a2f24a

Browse files
committed
Use CHECK-NEXT for tests with exact output
1 parent 78a8188 commit 7a2f24a

File tree

2 files changed

+54
-54
lines changed

2 files changed

+54
-54
lines changed

mlir/test/Transforms/print-op-graph-back-edges.mlir

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
// RUN: mlir-opt -view-op-graph %s -o %t 2>&1 | FileCheck -check-prefix=DFG %s
22

33
// DFG-LABEL: digraph G {
4-
// DFG: compound = true;
5-
// DFG: subgraph cluster_1 {
6-
// DFG: v2 [label = " ", shape = plain];
7-
// DFG: label = "builtin.module : ()\l";
8-
// DFG: subgraph cluster_3 {
9-
// DFG: v4 [label = " ", shape = plain];
10-
// DFG: label = "";
11-
// DFG: v5 [fillcolor = "0.000000 0.3 0.95", label = "{{\{\{}}<arg_c0> %c0|<arg_c1> %c1}|arith.addi\l\loverflowFlags: #arith.overflow\<none...\l|{<res_0> %0 index}}", shape = Mrecord, style = filled];
12-
// DFG: v6 [fillcolor = "0.333333 0.3 0.95", label = "{arith.constant\l\lvalue: 0 : index\l|{<res_c0> %c0 index}}", shape = Mrecord, style = filled];
13-
// DFG: v7 [fillcolor = "0.333333 0.3 0.95", label = "{arith.constant\l\lvalue: 1 : index\l|{<res_c1> %c1 index}}", shape = Mrecord, style = filled];
14-
// DFG: }
15-
// DFG: }
16-
// DFG: v6:res_c0:s -> v5:arg_c0:n[style = solid];
17-
// DFG: v7:res_c1:s -> v5:arg_c1:n[style = solid];
18-
// DFG: }
4+
// DFG-NEXT: compound = true;
5+
// DFG-NEXT: subgraph cluster_1 {
6+
// DFG-NEXT: v2 [label = " ", shape = plain];
7+
// DFG-NEXT: label = "builtin.module : ()\l";
8+
// DFG-NEXT: subgraph cluster_3 {
9+
// DFG-NEXT: v4 [label = " ", shape = plain];
10+
// DFG-NEXT: label = "";
11+
// DFG-NEXT: v5 [fillcolor = "0.000000 0.3 0.95", label = "{{\{\{}}<arg_c0> %c0|<arg_c1> %c1}|arith.addi\l\loverflowFlags: #arith.overflow\<none...\l|{<res_0> %0 index}}", shape = Mrecord, style = filled];
12+
// DFG-NEXT: v6 [fillcolor = "0.333333 0.3 0.95", label = "{arith.constant\l\lvalue: 0 : index\l|{<res_c0> %c0 index}}", shape = Mrecord, style = filled];
13+
// DFG-NEXT: v7 [fillcolor = "0.333333 0.3 0.95", label = "{arith.constant\l\lvalue: 1 : index\l|{<res_c1> %c1 index}}", shape = Mrecord, style = filled];
14+
// DFG-NEXT: }
15+
// DFG-NEXT: }
16+
// DFG-NEXT: v6:res_c0:s -> v5:arg_c0:n[style = solid];
17+
// DFG-NEXT: v7:res_c1:s -> v5:arg_c1:n[style = solid];
18+
// DFG-NEXT: }
1919

2020
module {
2121
%add = arith.addi %c0, %c1 : index

mlir/test/Transforms/print-op-graph-cycles.mlir

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,45 @@
11
// RUN: mlir-opt -view-op-graph -allow-unregistered-dialect %s -o %t 2>&1 | FileCheck -check-prefix=DFG %s
22

33
// DFG-LABEL: digraph G {
4-
// DFG: compound = true;
5-
// DFG: subgraph cluster_1 {
6-
// DFG: v2 [label = " ", shape = plain];
7-
// DFG: label = "builtin.module : ()\l";
8-
// DFG: subgraph cluster_3 {
9-
// DFG: v4 [label = " ", shape = plain];
10-
// DFG: label = "";
11-
// DFG: subgraph cluster_5 {
12-
// DFG: v6 [label = " ", shape = plain];
13-
// DFG: label = "test.graph_region : ()\l";
14-
// DFG: subgraph cluster_7 {
15-
// DFG: v8 [label = " ", shape = plain];
16-
// DFG: label = "";
17-
// DFG: v9 [fillcolor = "0.000000 0.3 0.95", label = "{{\{\{}}<arg_0> %0|<arg_2> %2}|op1\l|{<res_0> %0 i32}}", shape = Mrecord, style = filled];
18-
// DFG: subgraph cluster_10 {
19-
// DFG: v11 [label = " ", shape = plain];
20-
// DFG: label = "test.ssacfg_region : (i32)\l";
21-
// DFG: subgraph cluster_12 {
22-
// DFG: v13 [label = " ", shape = plain];
23-
// DFG: label = "";
24-
// DFG: v14 [fillcolor = "0.166667 0.3 0.95", label = "{{\{\{}}<arg_0> %0|<arg_1> %1|<arg_2> %2|<arg_3> %3}|op2\l|{<res_4> %4 i32}}", shape = Mrecord, style = filled];
25-
// DFG: }
26-
// DFG: }
27-
// DFG: v15 [fillcolor = "0.166667 0.3 0.95", label = "{{\{\{}}<arg_0> %0|<arg_3> %3}|op2\l|{<res_2> %2 i32}}", shape = Mrecord, style = filled];
28-
// DFG: v16 [fillcolor = "0.500000 0.3 0.95", label = "{{\{\{}}<arg_0> %0}|op3\l|{<res_3> %3 i32}}", shape = Mrecord, style = filled];
29-
// DFG: }
30-
// DFG: }
31-
// DFG: }
32-
// DFG: }
33-
// DFG: v9:res_0:s -> v9:arg_0:n[style = solid];
34-
// DFG: v15:res_2:s -> v9:arg_2:n[style = solid];
35-
// DFG: v9:res_0:s -> v14:arg_0:n[style = solid];
36-
// DFG: v11 -> v14:arg_1:n[ltail = cluster_10, style = solid];
37-
// DFG: v15:res_2:s -> v14:arg_2:n[style = solid];
38-
// DFG: v16:res_3:s -> v14:arg_3:n[style = solid];
39-
// DFG: v9:res_0:s -> v15:arg_0:n[style = solid];
40-
// DFG: v16:res_3:s -> v15:arg_3:n[style = solid];
41-
// DFG: v9:res_0:s -> v16:arg_0:n[style = solid];
42-
// DFG: }
4+
// DFG-NEXT: compound = true;
5+
// DFG-NEXT: subgraph cluster_1 {
6+
// DFG-NEXT: v2 [label = " ", shape = plain];
7+
// DFG-NEXT: label = "builtin.module : ()\l";
8+
// DFG-NEXT: subgraph cluster_3 {
9+
// DFG-NEXT: v4 [label = " ", shape = plain];
10+
// DFG-NEXT: label = "";
11+
// DFG-NEXT: subgraph cluster_5 {
12+
// DFG-NEXT: v6 [label = " ", shape = plain];
13+
// DFG-NEXT: label = "test.graph_region : ()\l";
14+
// DFG-NEXT: subgraph cluster_7 {
15+
// DFG-NEXT: v8 [label = " ", shape = plain];
16+
// DFG-NEXT: label = "";
17+
// DFG-NEXT: v9 [fillcolor = "0.000000 0.3 0.95", label = "{{\{\{}}<arg_0> %0|<arg_2> %2}|op1\l|{<res_0> %0 i32}}", shape = Mrecord, style = filled];
18+
// DFG-NEXT: subgraph cluster_10 {
19+
// DFG-NEXT: v11 [label = " ", shape = plain];
20+
// DFG-NEXT: label = "test.ssacfg_region : (i32)\l";
21+
// DFG-NEXT: subgraph cluster_12 {
22+
// DFG-NEXT: v13 [label = " ", shape = plain];
23+
// DFG-NEXT: label = "";
24+
// DFG-NEXT: v14 [fillcolor = "0.166667 0.3 0.95", label = "{{\{\{}}<arg_0> %0|<arg_1> %1|<arg_2> %2|<arg_3> %3}|op2\l|{<res_4> %4 i32}}", shape = Mrecord, style = filled];
25+
// DFG-NEXT: }
26+
// DFG-NEXT: }
27+
// DFG-NEXT: v15 [fillcolor = "0.166667 0.3 0.95", label = "{{\{\{}}<arg_0> %0|<arg_3> %3}|op2\l|{<res_2> %2 i32}}", shape = Mrecord, style = filled];
28+
// DFG-NEXT: v16 [fillcolor = "0.500000 0.3 0.95", label = "{{\{\{}}<arg_0> %0}|op3\l|{<res_3> %3 i32}}", shape = Mrecord, style = filled];
29+
// DFG-NEXT: }
30+
// DFG-NEXT: }
31+
// DFG-NEXT: }
32+
// DFG-NEXT: }
33+
// DFG-NEXT: v9:res_0:s -> v9:arg_0:n[style = solid];
34+
// DFG-NEXT: v15:res_2:s -> v9:arg_2:n[style = solid];
35+
// DFG-NEXT: v9:res_0:s -> v14:arg_0:n[style = solid];
36+
// DFG-NEXT: v11 -> v14:arg_1:n[ltail = cluster_10, style = solid];
37+
// DFG-NEXT: v15:res_2:s -> v14:arg_2:n[style = solid];
38+
// DFG-NEXT: v16:res_3:s -> v14:arg_3:n[style = solid];
39+
// DFG-NEXT: v9:res_0:s -> v15:arg_0:n[style = solid];
40+
// DFG-NEXT: v16:res_3:s -> v15:arg_3:n[style = solid];
41+
// DFG-NEXT: v9:res_0:s -> v16:arg_0:n[style = solid];
42+
// DFG-NEXT: }
4343

4444
"test.graph_region"() ({ // A Graph region
4545
%1 = "op1"(%1, %3) : (i32, i32) -> (i32) // OK: %1, %3 allowed here

0 commit comments

Comments
 (0)