summaryrefslogtreecommitdiffstats
path: root/mlir/test/IR/parser.mlir
diff options
context:
space:
mode:
Diffstat (limited to 'mlir/test/IR/parser.mlir')
-rw-r--r--mlir/test/IR/parser.mlir15
1 files changed, 15 insertions, 0 deletions
diff --git a/mlir/test/IR/parser.mlir b/mlir/test/IR/parser.mlir
index dc85fbb14b3..a6460b46dd9 100644
--- a/mlir/test/IR/parser.mlir
+++ b/mlir/test/IR/parser.mlir
@@ -1116,3 +1116,18 @@ func @"\"_string_symbol_reference\""() {
// CHECK-LABEL: func @nested_reference
// CHECK-NEXT: ref = @some_symbol::@some_nested_symbol
func @nested_reference() attributes {test.ref = @some_symbol::@some_nested_symbol }
+
+// CHECK-LABEL: func @custom_asm_names
+func @custom_asm_names() -> (i32, i32, i32, i32, i32, i32, i32) {
+ // CHECK: %[[FIRST:first.*]], %[[MIDDLE:middle_results.*]]:2, %[[LAST:[0-9]+]]
+ %0, %1:2, %2 = "test.asm_interface_op"() : () -> (i32, i32, i32, i32)
+
+ // CHECK: %[[FIRST_2:first.*]], %[[LAST_2:[0-9]+]]
+ %3, %4 = "test.asm_interface_op"() : () -> (i32, i32)
+
+ // CHECK: %[[RESULT:result.*]]
+ %5 = "test.asm_dialect_interface_op"() : () -> (i32)
+
+ // CHECK: return %[[FIRST]], %[[MIDDLE]]#0, %[[MIDDLE]]#1, %[[LAST]], %[[FIRST_2]], %[[LAST_2]]
+ return %0, %1#0, %1#1, %2, %3, %4, %5 : i32, i32, i32, i32, i32, i32, i32
+}
OpenPOWER on IntegriCloud