From 977c6f786710770d4a673c1200b0c08ca25fe13c Mon Sep 17 00:00:00 2001 From: Paul Robinson Date: Thu, 15 Dec 2022 14:49:20 -0800 Subject: [mlir] Convert tests to check 'target=...' Part of the project to eliminate special handling for triples in lit expressions. --- mlir/test/Examples/Toy/Ch6/jit.toy | 2 +- mlir/test/Examples/Toy/Ch7/jit.toy | 2 +- mlir/test/Examples/standalone/test.toy | 2 +- mlir/test/Integration/Dialect/Complex/CPU/correctness.mlir | 2 +- mlir/test/Integration/Dialect/SparseTensor/CPU/dense_output_bf16.mlir | 2 +- mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_sum_bf16.mlir | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/mlir/test/Examples/Toy/Ch6/jit.toy b/mlir/test/Examples/Toy/Ch6/jit.toy index 387c045..c5be603 100644 --- a/mlir/test/Examples/Toy/Ch6/jit.toy +++ b/mlir/test/Examples/Toy/Ch6/jit.toy @@ -1,5 +1,5 @@ # RUN: toyc-ch6 -emit=jit %s -# UNSUPPORTED: windows +# UNSUPPORTED: target={{.*windows.*}} def main() { print([[1, 2], [3, 4]]); diff --git a/mlir/test/Examples/Toy/Ch7/jit.toy b/mlir/test/Examples/Toy/Ch7/jit.toy index 5310031..82469c7 100644 --- a/mlir/test/Examples/Toy/Ch7/jit.toy +++ b/mlir/test/Examples/Toy/Ch7/jit.toy @@ -1,5 +1,5 @@ # RUN: toyc-ch7 -emit=jit %s -# UNSUPPORTED: windows +# UNSUPPORTED: target={{.*windows.*}} def main() { print([[1, 2], [3, 4]]); diff --git a/mlir/test/Examples/standalone/test.toy b/mlir/test/Examples/standalone/test.toy index 3f5c5cb..0815729 100644 --- a/mlir/test/Examples/standalone/test.toy +++ b/mlir/test/Examples/standalone/test.toy @@ -8,4 +8,4 @@ # Note: The number of checked tests is not important. The command will fail # if any fail. # CHECK: Passed -# UNSUPPORTED: windows, android +# UNSUPPORTED: target={{.*(windows|android).*}} diff --git a/mlir/test/Integration/Dialect/Complex/CPU/correctness.mlir b/mlir/test/Integration/Dialect/Complex/CPU/correctness.mlir index db2c4c6..c89a146 100644 --- a/mlir/test/Integration/Dialect/Complex/CPU/correctness.mlir +++ b/mlir/test/Integration/Dialect/Complex/CPU/correctness.mlir @@ -9,7 +9,7 @@ // RUN: -shared-libs=%mlir_lib_dir/libmlir_c_runner_utils%shlibext |\ // RUN: FileCheck %s -// XFAIL: aarch64 +// XFAIL: target=aarch64{{.*}} // See: https://github.com/llvm/llvm-project/issues/58531 func.func @test_unary(%input: tensor>, diff --git a/mlir/test/Integration/Dialect/SparseTensor/CPU/dense_output_bf16.mlir b/mlir/test/Integration/Dialect/SparseTensor/CPU/dense_output_bf16.mlir index d0e32c2..ed4c054 100644 --- a/mlir/test/Integration/Dialect/SparseTensor/CPU/dense_output_bf16.mlir +++ b/mlir/test/Integration/Dialect/SparseTensor/CPU/dense_output_bf16.mlir @@ -15,7 +15,7 @@ // REDEFINE: %{option} = "enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true" // RUN: %{command} -// UNSUPPORTED: aarch64 +// UNSUPPORTED: target=aarch64{{.*}} #SparseVector = #sparse_tensor.encoding<{dimLevelType = ["compressed"]}> #DenseVector = #sparse_tensor.encoding<{dimLevelType = ["dense"]}> diff --git a/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_sum_bf16.mlir b/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_sum_bf16.mlir index b246524..23e25d1 100644 --- a/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_sum_bf16.mlir +++ b/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_sum_bf16.mlir @@ -15,7 +15,7 @@ // REDEFINE: %{option} = "enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true" // RUN: %{command} -// UNSUPPORTED: aarch64 +// UNSUPPORTED: target=aarch64{{.*}} !Filename = !llvm.ptr -- cgit v1.1