From a6c8f06f55b3adbafeaad2078dce5e4cc70f9b27 Mon Sep 17 00:00:00 2001 From: Benjamin Chetioui Date: Mon, 12 Dec 2022 09:27:29 +0100 Subject: [PATCH] [mlir] Clean up typos in FileCheck directives in various tests. Reviewed By: tpopp Differential Revision: https://reviews.llvm.org/D139698 --- mlir/test/Conversion/MemRefToLLVM/memref-to-llvm.mlir | 2 +- mlir/test/Dialect/Affine/SuperVectorize/vector_utils.mlir | 4 ++-- mlir/test/Dialect/Arith/test-emulate-wide-int-pass.mlir | 2 +- .../one-shot-module-bufferize-allow-return-allocs.mlir | 2 +- mlir/test/Dialect/OpenMP/ops.mlir | 2 +- mlir/test/Dialect/Tosa/ops.mlir | 2 +- mlir/test/Dialect/Tosa/tosa-infer-shapes.mlir | 4 ++-- mlir/test/Dialect/Vector/vector-contract-transforms.mlir | 5 ++--- mlir/test/Target/SPIRV/logical-ops.mlir | 4 ++-- mlir/test/mlir-cpu-runner/math-polynomial-approx.mlir | 4 ++-- 10 files changed, 15 insertions(+), 16 deletions(-) diff --git a/mlir/test/Conversion/MemRefToLLVM/memref-to-llvm.mlir b/mlir/test/Conversion/MemRefToLLVM/memref-to-llvm.mlir index 3c087ec9e473..c12a07881cd4 100644 --- a/mlir/test/Conversion/MemRefToLLVM/memref-to-llvm.mlir +++ b/mlir/test/Conversion/MemRefToLLVM/memref-to-llvm.mlir @@ -89,7 +89,7 @@ func.func @view(%arg0 : index, %arg1 : index, %arg2 : index) { // ----- -// CHECK-LABL: func @view_empty_memref( +// CHECK-LABEL: func @view_empty_memref( // CHECK: %[[ARG0:.*]]: index, // CHECK: %[[ARG1:.*]]: memref<0xi8>) func.func @view_empty_memref(%offset: index, %mem: memref<0xi8>) { diff --git a/mlir/test/Dialect/Affine/SuperVectorize/vector_utils.mlir b/mlir/test/Dialect/Affine/SuperVectorize/vector_utils.mlir index 79533942c787..e58de9fdaa76 100644 --- a/mlir/test/Dialect/Affine/SuperVectorize/vector_utils.mlir +++ b/mlir/test/Dialect/Affine/SuperVectorize/vector_utils.mlir @@ -21,9 +21,9 @@ func.func @vector_add_2d(%arg0: index, %arg1: index) -> f32 { %cst_b = arith.constant dense<1.000000e+00> : vector<1x3x7x4x4xf32> // TEST-3x4x5x8:matched: {{.*}} arith.constant dense{{.*}} with shape ratio: 3, 2, 1, 4 %cst_c = arith.constant dense<1.000000e+00> : vector<3x4x5x8xf32> - // TEST-3x4x4x8-NOT:matched: {{.*}} arith.constant dense{{.*}} with shape ratio{{.*}} + // TEST-3x4x5x8-NOT:matched: {{.*}} arith.constant dense{{.*}} with shape ratio{{.*}} %cst_d = arith.constant dense<1.000000e+00> : vector<3x4x4x8xf32> - // TEST-3x4x4x8:matched: {{.*}} arith.constant dense{{.*}} with shape ratio: 1, 1, 2, 16 + // TEST-3x4x5x8:matched: {{.*}} arith.constant dense{{.*}} with shape ratio: 1, 1, 2, 16 %cst_e = arith.constant dense<1.000000e+00> : vector<1x2x10x32xf32> // Nothing should be matched in this last block. diff --git a/mlir/test/Dialect/Arith/test-emulate-wide-int-pass.mlir b/mlir/test/Dialect/Arith/test-emulate-wide-int-pass.mlir index 9e14fffd92b4..e4ac6ec5acee 100644 --- a/mlir/test/Dialect/Arith/test-emulate-wide-int-pass.mlir +++ b/mlir/test/Dialect/Arith/test-emulate-wide-int-pass.mlir @@ -23,7 +23,7 @@ func.func @entry() { // CHECK-NEXT: [[HIGH1:%.+]] = vector.extract [[BCAST0]][1] : vector<2xi32> // CHECK-NEXT: {{%.+}}, {{%.+}} = arith.addui_extended [[LOW0]], [[LOW1]] : i32, i1 // CHECK: [[RES:%.+]] = llvm.bitcast {{%.+}} : vector<2xi32> to i64 -// CHECK-NEXt: return [[RES]] : i64 +// CHECK-NEXT: return [[RES]] : i64 func.func @emulate_me_please(%x : i64) -> i64 { %r = arith.addi %x, %x : i64 return %r : i64 diff --git a/mlir/test/Dialect/Bufferization/Transforms/one-shot-module-bufferize-allow-return-allocs.mlir b/mlir/test/Dialect/Bufferization/Transforms/one-shot-module-bufferize-allow-return-allocs.mlir index 175803fc7c59..9cacaf0c1fea 100644 --- a/mlir/test/Dialect/Bufferization/Transforms/one-shot-module-bufferize-allow-return-allocs.mlir +++ b/mlir/test/Dialect/Bufferization/Transforms/one-shot-module-bufferize-allow-return-allocs.mlir @@ -74,4 +74,4 @@ func.func @return_arg(%A: tensor) -> tensor { // NO-DROP-LABEL: func @return_arg // NO-DROP-SAME: %[[A:.*]]: memref () // CHECK: omp.wsloop linear(%{{.*}} = %{{.*}} : memref) schedule(static) - // CHECK-SAMe: for (%{{.*}}) : index = (%{{.*}}) to (%{{.*}}) step (%{{.*}}) + // CHECK-SAME: for (%{{.*}}) : index = (%{{.*}}) to (%{{.*}}) step (%{{.*}}) "omp.wsloop" (%lb, %ub, %step, %data_var, %linear_var) ({ ^bb0(%iv: index): omp.yield diff --git a/mlir/test/Dialect/Tosa/ops.mlir b/mlir/test/Dialect/Tosa/ops.mlir index ac7bf49a2b81..aa91e0f18bc7 100644 --- a/mlir/test/Dialect/Tosa/ops.mlir +++ b/mlir/test/Dialect/Tosa/ops.mlir @@ -73,7 +73,7 @@ func.func @test_max_pool2d(%arg0: tensor<1x32x32x8xf32>) -> tensor<1x32x32x8xf32 } // ----- -/// CHECK-LABEL: transpose_conv2d +// CHECK-LABEL: transpose_conv2d func.func @test_transpose_conv2d(%arg0: tensor<1x32x32x8xf32>, %arg1: tensor<16x1x1x8xf32>, %arg2: tensor<16xf32>) -> tensor<1x32x32x16xf32> { %0 = "tosa.transpose_conv2d"(%arg0, %arg1, %arg2) {out_pad = [0, 0, 0, 0], out_shape = [1, 32, 32, 16], stride = [1, 1]} : (tensor<1x32x32x8xf32>, tensor<16x1x1x8xf32>, tensor<16xf32>) -> tensor<1x32x32x16xf32> return %0 : tensor<1x32x32x16xf32> diff --git a/mlir/test/Dialect/Tosa/tosa-infer-shapes.mlir b/mlir/test/Dialect/Tosa/tosa-infer-shapes.mlir index 70a07db69f0d..1cc9eb2dab3c 100644 --- a/mlir/test/Dialect/Tosa/tosa-infer-shapes.mlir +++ b/mlir/test/Dialect/Tosa/tosa-infer-shapes.mlir @@ -352,7 +352,7 @@ func.func @test_dynamic_mixed_matmul(%arg0 : tensor, %arg1 : tensor, %arg1 : tensor<513xi16>) -> () { // CHECK:"tosa.table"(%arg0, %arg1) : (tensor<4x5xi16>, tensor<513xi16>) -> tensor<4x5xi16> %0 = "tosa.table"(%arg0, %arg1) : (tensor<4x5xi16>, tensor<513xi16>) -> tensor @@ -361,7 +361,7 @@ func.func @test_table_static(%arg0 : tensor<4x5xi16>, %arg1 : tensor<513xi16>) - // ----- -// CHECK-LABLE: @test_table_dynamic +// CHECK-LABEL: @test_table_dynamic func.func @test_table_dynamic(%arg0 : tensor<4x?xi16>, %arg1 : tensor<513xi16>) -> () { // CHECK:"tosa.table"(%arg0, %arg1) : (tensor<4x?xi16>, tensor<513xi16>) -> tensor<4x?xi16> %0 = "tosa.table"(%arg0, %arg1) : (tensor<4x?xi16>, tensor<513xi16>) -> tensor diff --git a/mlir/test/Dialect/Vector/vector-contract-transforms.mlir b/mlir/test/Dialect/Vector/vector-contract-transforms.mlir index 1c6333710348..d4dc35d670c3 100644 --- a/mlir/test/Dialect/Vector/vector-contract-transforms.mlir +++ b/mlir/test/Dialect/Vector/vector-contract-transforms.mlir @@ -403,9 +403,8 @@ func.func @nop_shape_cast(%arg0: vector<16xf32>) -> vector<16xf32> { } // CHECK-LABEL: func @cancel_shape_cast -// FIXME: PR49590 -// HECK-SAME: %[[A:.*]]: vector<16xf32> -// HECK: return %[[A]] : vector<16xf32> +// CHECK-SAME: %[[A:.*]]: vector<16xf32> +// CHECK: return %[[A]] : vector<16xf32> func.func @cancel_shape_cast(%arg0: vector<16xf32>) -> vector<16xf32> { %0 = vector.shape_cast %arg0 : vector<16xf32> to vector<4x4xf32> diff --git a/mlir/test/Target/SPIRV/logical-ops.mlir b/mlir/test/Target/SPIRV/logical-ops.mlir index c3545f8e98ea..16846ac84e38 100644 --- a/mlir/test/Target/SPIRV/logical-ops.mlir +++ b/mlir/test/Target/SPIRV/logical-ops.mlir @@ -80,9 +80,9 @@ spirv.module Logical GLSL450 requires #spirv.vce { %13 = spirv.Ordered %arg0, %arg1 : f32 // CHECK: spirv.Unordered %14 = spirv.Unordered %arg0, %arg1 : f32 - // CHCK: spirv.IsNan + // CHECK: spirv.IsNan %15 = spirv.IsNan %arg0 : f32 - // CHCK: spirv.IsInf + // CHECK: spirv.IsInf %16 = spirv.IsInf %arg1 : f32 spirv.Return } diff --git a/mlir/test/mlir-cpu-runner/math-polynomial-approx.mlir b/mlir/test/mlir-cpu-runner/math-polynomial-approx.mlir index b95f6be1057b..a2cb10917c43 100644 --- a/mlir/test/mlir-cpu-runner/math-polynomial-approx.mlir +++ b/mlir/test/mlir-cpu-runner/math-polynomial-approx.mlir @@ -442,11 +442,11 @@ func.func @cos() { %pi_over_4 = arith.constant 0.78539816339 : f32 call @cos_f32(%pi_over_4) : (f32) -> () - //// CHECK: 0 + // CHECK: 0 %pi_over_2 = arith.constant 1.57079632679 : f32 call @cos_f32(%pi_over_2) : (f32) -> () - /// CHECK: -1 + // CHECK: -1 %pi = arith.constant 3.14159265359 : f32 call @cos_f32(%pi) : (f32) -> () -- 2.34.1