@@ -115,13 +115,11 @@ func.func @zero_d_load(%arg0: memref<f32>) -> f32 {
115115
116116// -----
117117
118- // CHECK-LABEL: func @static_load
119- // CHECK: %[[MEMREF:.*]]: memref<10x42xf32>,
120- // CHECK: %[[I:.*]]: index,
121- // CHECK: %[[J:.*]]: index)
118+ // CHECK-LABEL: func @static_load(
119+ // CHECK-SAME: %[[MEMREF:.*]]: memref<10x42xf32>, %[[I:.*]]: index, %[[J:.*]]: index)
122120func.func @static_load (%static : memref <10 x42 xf32 >, %i : index , %j : index ) {
123- // CHECK: %[[II:.*]] = builtin.unrealized_conversion_cast %[[I]]
124- // CHECK: %[[JJ:.*]] = builtin.unrealized_conversion_cast %[[J]]
121+ // CHECK-DAG : %[[II:.*]] = builtin.unrealized_conversion_cast %[[I]]
122+ // CHECK-DAG : %[[JJ:.*]] = builtin.unrealized_conversion_cast %[[J]]
125123// CHECK: %[[ptr:.*]] = llvm.extractvalue %{{.*}}[1] : !llvm.struct<(ptr, ptr, i64, array<2 x i64>, array<2 x i64>)>
126124// CHECK: %[[st0:.*]] = llvm.mlir.constant(42 : index) : i64
127125// CHECK: %[[offI:.*]] = llvm.mul %[[II]], %[[st0]] : i64
@@ -148,8 +146,8 @@ func.func @zero_d_store(%arg0: memref<f32>, %arg1: f32) {
148146// CHECK: %[[MEMREF:.*]]: memref<10x42xf32>,
149147// CHECK-SAME: %[[I:.*]]: index, %[[J:.*]]: index,
150148func.func @static_store (%static : memref <10 x42 xf32 >, %i : index , %j : index , %val : f32 ) {
151- // CHECK: %[[II:.*]] = builtin.unrealized_conversion_cast %[[I]]
152- // CHECK: %[[JJ:.*]] = builtin.unrealized_conversion_cast %[[J]]
149+ // CHECK-DAG : %[[II:.*]] = builtin.unrealized_conversion_cast %[[I]]
150+ // CHECK-DAG : %[[JJ:.*]] = builtin.unrealized_conversion_cast %[[J]]
153151// CHECK: %[[ptr:.*]] = llvm.extractvalue %{{.*}}[1] : !llvm.struct<(ptr, ptr, i64, array<2 x i64>, array<2 x i64>)>
154152// CHECK: %[[st0:.*]] = llvm.mlir.constant(42 : index) : i64
155153// CHECK: %[[offI:.*]] = llvm.mul %[[II]], %[[st0]] : i64
@@ -205,7 +203,7 @@ module attributes { dlti.dl_spec = #dlti.dl_spec<#dlti.dl_entry<index, 32>> } {
205203 func.func @address () {
206204 %c1 = arith.constant 1 : index
207205 %0 = memref.alloc (%c1 ) : memref <? x vector <2 xf32 >>
208- // CHECK: %[[CST_S:.*]] = arith.constant 1 : index
206+ // CHECK-DAG : %[[CST_S:.*]] = arith.constant 1 : index
209207 // CHECK: %[[CST:.*]] = builtin.unrealized_conversion_cast
210208 // CHECK: llvm.mlir.zero
211209 // CHECK: llvm.getelementptr %{{.*}}[[CST]]
@@ -269,8 +267,8 @@ func.func @memref.reshape(%arg0: memref<4x5x6xf32>) -> memref<2x6x20xf32> {
269267// CHECK-LABEL: func @memref.reshape.dynamic.dim
270268// CHECK-SAME: %[[arg:.*]]: memref<?x?x?xf32>, %[[shape:.*]]: memref<4xi64>) -> memref<?x?x12x32xf32>
271269func.func @memref.reshape.dynamic.dim (%arg: memref <?x?x?xf32 >, %shape: memref <4 xi64 >) -> memref <?x?x12 x32 xf32 > {
272- // CHECK: %[[arg_cast:.*]] = builtin.unrealized_conversion_cast %[[arg]] : memref<?x?x?xf32> to !llvm.struct<(ptr, ptr, i64, array<3 x i64>, array<3 x i64>)>
273- // CHECK: %[[shape_cast:.*]] = builtin.unrealized_conversion_cast %[[shape]] : memref<4xi64> to !llvm.struct<(ptr, ptr, i64, array<1 x i64>, array<1 x i64>)>
270+ // CHECK-DAG : %[[arg_cast:.*]] = builtin.unrealized_conversion_cast %[[arg]] : memref<?x?x?xf32> to !llvm.struct<(ptr, ptr, i64, array<3 x i64>, array<3 x i64>)>
271+ // CHECK-DAG : %[[shape_cast:.*]] = builtin.unrealized_conversion_cast %[[shape]] : memref<4xi64> to !llvm.struct<(ptr, ptr, i64, array<1 x i64>, array<1 x i64>)>
274272 // CHECK: %[[undef:.*]] = llvm.mlir.undef : !llvm.struct<(ptr, ptr, i64, array<4 x i64>, array<4 x i64>)>
275273 // CHECK: %[[alloc_ptr:.*]] = llvm.extractvalue %[[arg_cast]][0] : !llvm.struct<(ptr, ptr, i64, array<3 x i64>, array<3 x i64>)>
276274 // CHECK: %[[align_ptr:.*]] = llvm.extractvalue %[[arg_cast]][1] : !llvm.struct<(ptr, ptr, i64, array<3 x i64>, array<3 x i64>)>
@@ -318,8 +316,8 @@ func.func @memref.reshape.dynamic.dim(%arg: memref<?x?x?xf32>, %shape: memref<4x
318316// CHECK-LABEL: func @memref.reshape_index
319317// CHECK-SAME: %[[arg:.*]]: memref<?x?xi32>, %[[shape:.*]]: memref<1xindex>
320318func.func @memref.reshape_index (%arg0: memref <?x?xi32 >, %shape: memref <1 xindex >) -> memref <?xi32 > {
321- // CHECK: %[[arg_cast:.*]] = builtin.unrealized_conversion_cast %[[arg]] : memref<?x?xi32> to !llvm.struct<(ptr, ptr, i64, array<2 x i64>, array<2 x i64>)>
322- // CHECK: %[[shape_cast:.*]] = builtin.unrealized_conversion_cast %[[shape]] : memref<1xindex> to !llvm.struct<(ptr, ptr, i64, array<1 x i64>, array<1 x i64>)>
319+ // CHECK-DAG : %[[arg_cast:.*]] = builtin.unrealized_conversion_cast %[[arg]] : memref<?x?xi32> to !llvm.struct<(ptr, ptr, i64, array<2 x i64>, array<2 x i64>)>
320+ // CHECK-DAG : %[[shape_cast:.*]] = builtin.unrealized_conversion_cast %[[shape]] : memref<1xindex> to !llvm.struct<(ptr, ptr, i64, array<1 x i64>, array<1 x i64>)>
323321 // CHECK: %[[undef:.*]] = llvm.mlir.undef : !llvm.struct<(ptr, ptr, i64, array<1 x i64>, array<1 x i64>)>
324322 // CHECK: %[[alloc_ptr:.*]] = llvm.extractvalue %[[arg_cast]][0] : !llvm.struct<(ptr, ptr, i64, array<2 x i64>, array<2 x i64>)>
325323 // CHECK: %[[align_ptr:.*]] = llvm.extractvalue %[[arg_cast]][1] : !llvm.struct<(ptr, ptr, i64, array<2 x i64>, array<2 x i64>)>
0 commit comments