|
5 | 5 | // CHECK-GENERIC: "func.func"
|
6 | 6 | // CHECK-GENERIC-SAME: sym_name = "wrapping_op"
|
7 | 7 | func.func @wrapping_op(%arg0 : i32, %arg1 : f32) -> (i3, i2, i1) {
|
8 |
| -// CHECK: %some_NameLoc, %some_NameLoc_0, %some_NameLoc_1 = test.wrapping_region wraps "some.op"(%arg1, %arg0) {test.attr = "attr"} : (f32, i32) -> (i1, i2, i3) |
| 8 | +// CHECK: %some_NameLoc:3 = test.wrapping_region wraps "some.op"(%arg1, %arg0) {test.attr = "attr"} : (f32, i32) -> (i1, i2, i3) |
9 | 9 | // CHECK-GENERIC: "test.wrapping_region"() ({
|
10 |
| -// CHECK-GENERIC: %some_NameLoc_2, %some_NameLoc_3, %some_NameLoc_4 = "some.op"(%arg1, %arg0) {test.attr = "attr"} : (f32, i32) -> (i1, i2, i3) loc("some_NameLoc") |
11 |
| -// CHECK-GENERIC: "test.return"(%some_NameLoc_2, %some_NameLoc_3, %some_NameLoc_4) : (i1, i2, i3) -> () loc("some_NameLoc") |
| 10 | +// CHECK-GENERIC: %[[NESTED_RES:.*]]:3 = "some.op"(%arg1, %arg0) {test.attr = "attr"} : (f32, i32) -> (i1, i2, i3) loc("some_NameLoc") |
| 11 | +// CHECK-GENERIC: "test.return"(%[[NESTED_RES]]#0, %[[NESTED_RES]]#1, %[[NESTED_RES]]#2) : (i1, i2, i3) -> () loc("some_NameLoc") |
12 | 12 | // CHECK-GENERIC: }) : () -> (i1, i2, i3) loc("some_NameLoc")
|
13 | 13 | %res:3 = test.wrapping_region wraps "some.op"(%arg1, %arg0) { test.attr = "attr" } : (f32, i32) -> (i1, i2, i3) loc("some_NameLoc")
|
14 | 14 | return %res#2, %res#1, %res#0 : i3, i2, i1
|
|
0 commit comments