diff options
| author | Hiroshi Inoue <inouehrs@jp.ibm.com> | 2020-01-09 13:03:23 +0000 |
|---|---|---|
| committer | Hiroshi Inoue <inouehrs@jp.ibm.com> | 2020-01-09 13:11:42 +0000 |
| commit | 4a83f1e171b73b819bcdb486e363b409d25fc629 (patch) | |
| tree | e9409b7fe5617e5e3ad05d5dac03b9a6c09ea3d0 | |
| parent | b65b1f322bd88513586a4539d2b5f18aeb698f3f (diff) | |
| download | bcm5719-llvm-4a83f1e171b73b819bcdb486e363b409d25fc629.tar.gz bcm5719-llvm-4a83f1e171b73b819bcdb486e363b409d25fc629.zip | |
[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
| -rw-r--r-- | mlir/test/EDSC/builder-api-test.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mlir/test/EDSC/builder-api-test.cpp b/mlir/test/EDSC/builder-api-test.cpp index c776ffe12bd..64e1b7094df 100644 --- a/mlir/test/EDSC/builder-api-test.cpp +++ b/mlir/test/EDSC/builder-api-test.cpp @@ -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 |

