[mlir] fix test failure in EDSC/builder-api-test

This patch fixes a test failure on a non-intel (PowerPC64) box.
The two affine.load are independent and hence llvm may reorder them.
The CHECK lines are modified for supporting reordered case.

Differential Revision: https://reviews.llvm.org/D72435
This commit is contained in:
Hiroshi Inoue 2020-01-09 13:03:23 +00:00
parent b65b1f322b
commit 4a83f1e171

View File

@ -724,9 +724,10 @@ TEST_FUNC(indirect_access) {
// clang-format on
// clang-format off
// CHECK-LABEL: func @indirect_access(
// CHECK: [[B:%.*]] = affine.load
// CHECK: [[D:%.*]] = affine.load
// CHECK-LABEL: func @indirect_access
// CHECK-SAME: (%[[ARG0:.*]]: memref<?xf32>, %[[ARG1:.*]]: memref<?xf32>, %[[ARG2:.*]]: memref<?xf32>, %[[ARG3:.*]]: memref<?xf32>)
// CHECK-DAG: [[B:%.*]] = affine.load %[[ARG1]]
// CHECK-DAG: [[D:%.*]] = affine.load %[[ARG3]]
// CHECK: load %{{.*}}{{\[}}[[B]]{{\]}}
// CHECK: store %{{.*}}, %{{.*}}{{\[}}[[D]]{{\]}}
// clang-format on