Skip to content

Commit 5dfb7a5

Browse files
committed
update test
1 parent b7e34f8 commit 5dfb7a5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mlir/test/Dialect/MemRef/expand-strided-metadata.mlir

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1462,13 +1462,13 @@ func.func @negative_memref_view_extract_aligned_pointer(%arg0: memref<?xi8>) ->
14621462
// `extract_aligned_pointer_as_index` must not be folded as `memref.view` can change the base pointer
14631463
// CHECK-LABEL: func @negative_memref_view_extract_aligned_pointer
14641464
// CHECK-SAME: (%[[ARG0:.*]]: memref<?xi8>)
1465-
// CHECK: %[[C0:.*]] = arith.constant 0 : index
1466-
// CHECK: %[[VIEW:.*]] = memref.view %[[ARG0]][%[[C0]]][] : memref<?xi8> to memref<f32>
1465+
// CHECK: %[[C10:.*]] = arith.constant 10 : index
1466+
// CHECK: %[[VIEW:.*]] = memref.view %[[ARG0]][%[[C10]]][] : memref<?xi8> to memref<f32>
14671467
// CHECK: %[[PTR:.*]] = memref.extract_aligned_pointer_as_index %[[VIEW]] : memref<f32> -> index
14681468
// CHECK: return %[[PTR]] : index
14691469

1470-
%c0 = arith.constant 0 : index
1471-
%0 = memref.view %arg0[%c0][] : memref<?xi8> to memref<f32>
1470+
%c10 = arith.constant 10 : index
1471+
%0 = memref.view %arg0[%c10][] : memref<?xi8> to memref<f32>
14721472
%1 = memref.extract_aligned_pointer_as_index %0: memref<f32> -> index
14731473
return %1 : index
14741474
}

0 commit comments

Comments
 (0)