@@ -288,13 +288,13 @@ void test_aggregates(mlir::MLIRContext *ctx) {
288288// CHECK-LABEL: cc.arg_subst[0] {
289289// CHECK: %[[VAL_0:.*]] = cc.undef !cc.struct<{i32, f64, i8, i16}>
290290// CHECK: %[[VAL_1:.*]] = arith.constant -889275714 : i32
291- // CHECK: %[[VAL_2:.*]] = cc.insert_value %[[VAL_1]] , %[[VAL_0]][0] : (!cc.struct<{i32, f64, i8, i16}>, i32) -> !cc.struct<{i32, f64, i8, i16}>
291+ // CHECK: %[[VAL_2:.*]] = cc.insert_value %[[VAL_0]][0] , %[[VAL_1]] : (!cc.struct<{i32, f64, i8, i16}>, i32) -> !cc.struct<{i32, f64, i8, i16}>
292292// CHECK: %[[VAL_3:.*]] = arith.constant 87.654499999999998 : f64
293- // CHECK: %[[VAL_4:.*]] = cc.insert_value %[[VAL_3]] , %[[VAL_2]][1 ] : (!cc.struct<{i32, f64, i8, i16}>, f64) -> !cc.struct<{i32, f64, i8, i16}>
293+ // CHECK: %[[VAL_4:.*]] = cc.insert_value %[[VAL_2]][1] , %[[VAL_3] ] : (!cc.struct<{i32, f64, i8, i16}>, f64) -> !cc.struct<{i32, f64, i8, i16}>
294294// CHECK: %[[VAL_5:.*]] = arith.constant 65 : i8
295- // CHECK: %[[VAL_6:.*]] = cc.insert_value %[[VAL_5]] , %[[VAL_4]][2 ] : (!cc.struct<{i32, f64, i8, i16}>, i8) -> !cc.struct<{i32, f64, i8, i16}>
295+ // CHECK: %[[VAL_6:.*]] = cc.insert_value %[[VAL_4]][2] , %[[VAL_5] ] : (!cc.struct<{i32, f64, i8, i16}>, i8) -> !cc.struct<{i32, f64, i8, i16}>
296296// CHECK: %[[VAL_7:.*]] = arith.constant -1314 : i16
297- // CHECK: %[[VAL_8:.*]] = cc.insert_value %[[VAL_7]] , %[[VAL_6]][3 ] : (!cc.struct<{i32, f64, i8, i16}>, i16) -> !cc.struct<{i32, f64, i8, i16}>
297+ // CHECK: %[[VAL_8:.*]] = cc.insert_value %[[VAL_6]][3] , %[[VAL_7] ] : (!cc.struct<{i32, f64, i8, i16}>, i16) -> !cc.struct<{i32, f64, i8, i16}>
298298// CHECK: }
299299 // clang-format on
300300}
@@ -324,35 +324,35 @@ void test_recursive(mlir::MLIRContext *ctx) {
324324// CHECK: %[[VAL_0:.*]] = cc.alloca !cc.array<!cc.struct<{i32, f64, i8, i16}> x 3>
325325// CHECK: %[[VAL_1:.*]] = cc.undef !cc.struct<{i32, f64, i8, i16}>
326326// CHECK: %[[VAL_2:.*]] = arith.constant -889275714 : i32
327- // CHECK: %[[VAL_3:.*]] = cc.insert_value %[[VAL_2]] , %[[VAL_1]][0 ] : (!cc.struct<{i32, f64, i8, i16}>, i32) -> !cc.struct<{i32, f64, i8, i16}>
327+ // CHECK: %[[VAL_3:.*]] = cc.insert_value %[[VAL_1]][0] , %[[VAL_2] ] : (!cc.struct<{i32, f64, i8, i16}>, i32) -> !cc.struct<{i32, f64, i8, i16}>
328328// CHECK: %[[VAL_4:.*]] = arith.constant 87.654499999999998 : f64
329- // CHECK: %[[VAL_5:.*]] = cc.insert_value %[[VAL_4]] , %[[VAL_3]][1 ] : (!cc.struct<{i32, f64, i8, i16}>, f64) -> !cc.struct<{i32, f64, i8, i16}>
329+ // CHECK: %[[VAL_5:.*]] = cc.insert_value %[[VAL_3]][1] , %[[VAL_4] ] : (!cc.struct<{i32, f64, i8, i16}>, f64) -> !cc.struct<{i32, f64, i8, i16}>
330330// CHECK: %[[VAL_6:.*]] = arith.constant 65 : i8
331- // CHECK: %[[VAL_7:.*]] = cc.insert_value %[[VAL_6]] , %[[VAL_5]][2 ] : (!cc.struct<{i32, f64, i8, i16}>, i8) -> !cc.struct<{i32, f64, i8, i16}>
331+ // CHECK: %[[VAL_7:.*]] = cc.insert_value %[[VAL_5]][2] , %[[VAL_6] ] : (!cc.struct<{i32, f64, i8, i16}>, i8) -> !cc.struct<{i32, f64, i8, i16}>
332332// CHECK: %[[VAL_8:.*]] = arith.constant -1314 : i16
333- // CHECK: %[[VAL_9:.*]] = cc.insert_value %[[VAL_8]] , %[[VAL_7]][3 ] : (!cc.struct<{i32, f64, i8, i16}>, i16) -> !cc.struct<{i32, f64, i8, i16}>
333+ // CHECK: %[[VAL_9:.*]] = cc.insert_value %[[VAL_7]][3] , %[[VAL_8] ] : (!cc.struct<{i32, f64, i8, i16}>, i16) -> !cc.struct<{i32, f64, i8, i16}>
334334// CHECK: %[[VAL_10:.*]] = cc.compute_ptr %[[VAL_0]][0] : (!cc.ptr<!cc.array<!cc.struct<{i32, f64, i8, i16}> x 3>>) -> !cc.ptr<!cc.struct<{i32, f64, i8, i16}>>
335335// CHECK: cc.store %[[VAL_9]], %[[VAL_10]] : !cc.ptr<!cc.struct<{i32, f64, i8, i16}>>
336336// CHECK: %[[VAL_11:.*]] = cc.undef !cc.struct<{i32, f64, i8, i16}>
337337// CHECK: %[[VAL_12:.*]] = arith.constant 5412 : i32
338- // CHECK: %[[VAL_13:.*]] = cc.insert_value %[[VAL_12]] , %[[VAL_11]][0 ] : (!cc.struct<{i32, f64, i8, i16}>, i32) -> !cc.struct<{i32, f64, i8, i16}>
338+ // CHECK: %[[VAL_13:.*]] = cc.insert_value %[[VAL_11]][0] , %[[VAL_12] ] : (!cc.struct<{i32, f64, i8, i16}>, i32) -> !cc.struct<{i32, f64, i8, i16}>
339339// CHECK: %[[VAL_14:.*]] = arith.constant 2.389450e+04 : f64
340- // CHECK: %[[VAL_15:.*]] = cc.insert_value %[[VAL_14]] , %[[VAL_13]][1 ] : (!cc.struct<{i32, f64, i8, i16}>, f64) -> !cc.struct<{i32, f64, i8, i16}>
340+ // CHECK: %[[VAL_15:.*]] = cc.insert_value %[[VAL_13]][1] , %[[VAL_14] ] : (!cc.struct<{i32, f64, i8, i16}>, f64) -> !cc.struct<{i32, f64, i8, i16}>
341341// CHECK: %[[VAL_16:.*]] = arith.constant 66 : i8
342- // CHECK: %[[VAL_17:.*]] = cc.insert_value %[[VAL_16]] , %[[VAL_15]][2 ] : (!cc.struct<{i32, f64, i8, i16}>, i8) -> !cc.struct<{i32, f64, i8, i16}>
342+ // CHECK: %[[VAL_17:.*]] = cc.insert_value %[[VAL_15]][2] , %[[VAL_16] ] : (!cc.struct<{i32, f64, i8, i16}>, i8) -> !cc.struct<{i32, f64, i8, i16}>
343343// CHECK: %[[VAL_18:.*]] = arith.constant 2778 : i16
344- // CHECK: %[[VAL_19:.*]] = cc.insert_value %[[VAL_18]] , %[[VAL_17]][3 ] : (!cc.struct<{i32, f64, i8, i16}>, i16) -> !cc.struct<{i32, f64, i8, i16}>
344+ // CHECK: %[[VAL_19:.*]] = cc.insert_value %[[VAL_17]][3] , %[[VAL_18] ] : (!cc.struct<{i32, f64, i8, i16}>, i16) -> !cc.struct<{i32, f64, i8, i16}>
345345// CHECK: %[[VAL_20:.*]] = cc.compute_ptr %[[VAL_0]][1] : (!cc.ptr<!cc.array<!cc.struct<{i32, f64, i8, i16}> x 3>>) -> !cc.ptr<!cc.struct<{i32, f64, i8, i16}>>
346346// CHECK: cc.store %[[VAL_19]], %[[VAL_20]] : !cc.ptr<!cc.struct<{i32, f64, i8, i16}>>
347347// CHECK: %[[VAL_21:.*]] = cc.undef !cc.struct<{i32, f64, i8, i16}>
348348// CHECK: %[[VAL_22:.*]] = arith.constant 90210 : i32
349- // CHECK: %[[VAL_23:.*]] = cc.insert_value %[[VAL_22]] , %[[VAL_21]][0 ] : (!cc.struct<{i32, f64, i8, i16}>, i32) -> !cc.struct<{i32, f64, i8, i16}>
349+ // CHECK: %[[VAL_23:.*]] = cc.insert_value %[[VAL_21]][0] , %[[VAL_22] ] : (!cc.struct<{i32, f64, i8, i16}>, i32) -> !cc.struct<{i32, f64, i8, i16}>
350350// CHECK: %[[VAL_24:.*]] = arith.constant 782934.78922999999 : f64
351- // CHECK: %[[VAL_25:.*]] = cc.insert_value %[[VAL_24]] , %[[VAL_23]][1 ] : (!cc.struct<{i32, f64, i8, i16}>, f64) -> !cc.struct<{i32, f64, i8, i16}>
351+ // CHECK: %[[VAL_25:.*]] = cc.insert_value %[[VAL_23]][1] , %[[VAL_24] ] : (!cc.struct<{i32, f64, i8, i16}>, f64) -> !cc.struct<{i32, f64, i8, i16}>
352352// CHECK: %[[VAL_26:.*]] = arith.constant 67 : i8
353- // CHECK: %[[VAL_27:.*]] = cc.insert_value %[[VAL_26]] , %[[VAL_25]][2 ] : (!cc.struct<{i32, f64, i8, i16}>, i8) -> !cc.struct<{i32, f64, i8, i16}>
353+ // CHECK: %[[VAL_27:.*]] = cc.insert_value %[[VAL_25]][2] , %[[VAL_26] ] : (!cc.struct<{i32, f64, i8, i16}>, i8) -> !cc.struct<{i32, f64, i8, i16}>
354354// CHECK: %[[VAL_28:.*]] = arith.constant 747 : i16
355- // CHECK: %[[VAL_29:.*]] = cc.insert_value %[[VAL_28]] , %[[VAL_27]][3 ] : (!cc.struct<{i32, f64, i8, i16}>, i16) -> !cc.struct<{i32, f64, i8, i16}>
355+ // CHECK: %[[VAL_29:.*]] = cc.insert_value %[[VAL_27]][3] , %[[VAL_28] ] : (!cc.struct<{i32, f64, i8, i16}>, i16) -> !cc.struct<{i32, f64, i8, i16}>
356356// CHECK: %[[VAL_30:.*]] = cc.compute_ptr %[[VAL_0]][2] : (!cc.ptr<!cc.array<!cc.struct<{i32, f64, i8, i16}> x 3>>) -> !cc.ptr<!cc.struct<{i32, f64, i8, i16}>>
357357// CHECK: cc.store %[[VAL_29]], %[[VAL_30]] : !cc.ptr<!cc.struct<{i32, f64, i8, i16}>>
358358// CHECK: %[[VAL_31:.*]] = arith.constant 3 : i64
0 commit comments