[Mlir-commits] [mlir] 977c6f7 - [mlir] Convert tests to check 'target=...'

Paul Robinson llvmlistbot at llvm.org
Thu Dec 15 14:50:03 PST 2022


Author: Paul Robinson
Date: 2022-12-15T14:49:54-08:00
New Revision: 977c6f786710770d4a673c1200b0c08ca25fe13c

URL: https://github.com/llvm/llvm-project/commit/977c6f786710770d4a673c1200b0c08ca25fe13c
DIFF: https://github.com/llvm/llvm-project/commit/977c6f786710770d4a673c1200b0c08ca25fe13c.diff

LOG: [mlir] Convert tests to check 'target=...'

Part of the project to eliminate special handling for triples in lit
expressions.

Added: 
    

Modified: 
    mlir/test/Examples/Toy/Ch6/jit.toy
    mlir/test/Examples/Toy/Ch7/jit.toy
    mlir/test/Examples/standalone/test.toy
    mlir/test/Integration/Dialect/Complex/CPU/correctness.mlir
    mlir/test/Integration/Dialect/SparseTensor/CPU/dense_output_bf16.mlir
    mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_sum_bf16.mlir

Removed: 
    


################################################################################
diff  --git a/mlir/test/Examples/Toy/Ch6/jit.toy b/mlir/test/Examples/Toy/Ch6/jit.toy
index 387c0450d936b..c5be603bcb6dc 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 5310031ed3cb5..82469c78f53be 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 3f5c5cbbb00de..08157297ba9f5 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 db2c4c6297259..c89a146bd0a70 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<?xcomplex<f32>>,

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 d0e32c2730254..ed4c054ad2ffe 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 b246524fe1282..23e25d1c2983d 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<i8>
 


        


More information about the Mlir-commits mailing list