[Mlir-commits] [mlir] 5faebb5 - [mlir][shape] fix test added in 9f77909.

Christian Sigg llvmlistbot at llvm.org
Mon Oct 3 06:48:40 PDT 2022


Author: Christian Sigg
Date: 2022-10-03T15:48:23+02:00
New Revision: 5faebb562401ad15a0f45094b6d970a7781c6fbb

URL: https://github.com/llvm/llvm-project/commit/5faebb562401ad15a0f45094b6d970a7781c6fbb
DIFF: https://github.com/llvm/llvm-project/commit/5faebb562401ad15a0f45094b6d970a7781c6fbb.diff

LOG: [mlir][shape] fix test added in 9f77909.

The stderr to stdout piping results in the two streams being interleaved on Windows.
Write stderr to a temp-file instead and run separate FileCheck on it.

Added: 
    

Modified: 
    mlir/test/Dialect/Shape/outline-shape-computation.mlir

Removed: 
    


################################################################################
diff  --git a/mlir/test/Dialect/Shape/outline-shape-computation.mlir b/mlir/test/Dialect/Shape/outline-shape-computation.mlir
index 9e383af32d343..73f6e3a5a2cb4 100644
--- a/mlir/test/Dialect/Shape/outline-shape-computation.mlir
+++ b/mlir/test/Dialect/Shape/outline-shape-computation.mlir
@@ -1,9 +1,10 @@
-// RUN: mlir-opt -outline-shape-computation -test-print-shape-mapping -split-input-file %s 2>&1 | FileCheck %s
+// RUN: mlir-opt -outline-shape-computation -test-print-shape-mapping -split-input-file %s 2>%t | FileCheck %s
+// RUN: cat %t | FileCheck %s --check-prefix SHAPE
 
 // Two dynamic shapes: one of direct shape.shape_of(arg) and the other.
 func.func @two_dynamic_one_direct_shape(%arg0: tensor<?x4x?xf32>, %arg1: tensor<2x4x?xf32>) -> tensor<?x4x?xf32> {
-  // CHECK-DAG: Shape for {{.*}} = "test.abs"({{.*}}> :: @shape_cal_0(<block argument> of type 'tensor<?x4x?xf32>' at index: 0)
-  // CHECK-DAG: Shape for {{.*}} = "test.concat"({{.*}}> :: @shape_cal_1(<block argument> of type 'tensor<?x4x?xf32>' at index: 0)
+  // SHAPE-DAG: Shape for {{.*}} = "test.abs"({{.*}}> :: @shape_cal_0(<block argument> of type 'tensor<?x4x?xf32>' at index: 0)
+  // SHAPE-DAG: Shape for {{.*}} = "test.concat"({{.*}}> :: @shape_cal_1(<block argument> of type 'tensor<?x4x?xf32>' at index: 0)
   %c2 = arith.constant 2 : index
   %c0 = arith.constant 0 : index
   %c4 = arith.constant 4 : index


        


More information about the Mlir-commits mailing list