@@ -33,8 +33,11 @@ func.func @mpi_test(%ref : memref<100xf32>) -> () {
3333 // CHECK-NEXT: %retval_0, %size = mpi.comm_size : !mpi.retval, i32
3434 %retval_0 , %size = mpi.comm_size (%comm ) : !mpi.comm -> !mpi.retval , i32
3535
36- // CHECK-NEXT: %new_comm, %retval3 = mpi.comm_split(%comm, %rank, %rank) : i32, !mpi.retval
37- %new_comm , %retval3 = mpi.comm_split (%comm , %rank , %rank ) : mpi.comm , i32 , i32
36+ // CHECK-NEXT: %new_comm = mpi.comm_split(%comm, %rank, %rank) : !mpi.comm, i32, i32 -> !mpi.comm
37+ %new_comm = mpi.comm_split (%comm , %rank , %rank ) : !mpi.comm , i32 , i32
38+
39+ // CHECK-NEXT: %retval3, %new_comm = mpi.comm_split(%comm, %rank, %rank) : !mpi.comm, i32, i32 -> !mpi.retval, !mpi.comm
40+ %retval3 , %new_comm = mpi.comm_split (%comm , %rank , %rank ) : !mpi.comm , i32 , i32 -> !mpi.retval , !mpi.comm
3841
3942 // CHECK-NEXT: mpi.send(%arg0, %rank, %rank) : memref<100xf32>, i32, i32
4043 mpi.send (%ref , %rank , %rank ) : memref <100 xf32 >, i32 , i32
@@ -78,14 +81,17 @@ func.func @mpi_test(%ref : memref<100xf32>) -> () {
7881 // CHECK-NEXT: %3 = mpi.wait(%req_2) : !mpi.request -> !mpi.retval
7982 %err6 = mpi.wait (%req2 ) : !mpi.request -> !mpi.retval
8083
81- // CHECK-NEXT: mpi.barrier : !mpi.retval
82- mpi.barrier : !mpi.retval
84+ // CHECK-NEXT: mpi.barrier
85+ mpi.barrier
8386
8487 // CHECK-NEXT: %5 = mpi.barrier : !mpi.retval
8588 %err7 = mpi.barrier : !mpi.retval
8689
87- // CHECK-NEXT: mpi.barrier(%comm) : !mpi.retval
88- mpi.barrier (%comm ) : !mpi.retval
90+ // CHECK-NEXT: mpi.barrier(%comm)
91+ mpi.barrier (%comm )
92+
93+ // CHECK-NEXT: %5 = mpi.barrier : !mpi.retval
94+ %err7 = mpi.barrier : !mpi.retval
8995
9096 // CHECK-NEXT: mpi.allreduce(%arg0, %arg0, <MPI_SUM>) : memref<100xf32>, memref<100xf32>
9197 mpi.allreduce (%ref , %ref , <MPI_SUM >) : memref <100 xf32 >, memref <100 xf32 >
0 commit comments