[mlir] Clean up typos in FileCheck directives in various tests.
authorBenjamin Chetioui <bchetioui@google.com>
Mon, 12 Dec 2022 08:27:29 +0000 (09:27 +0100)
committerTres Popp <tpopp@google.com>
Mon, 12 Dec 2022 08:29:14 +0000 (09:29 +0100)
Reviewed By: tpopp

Differential Revision: https://reviews.llvm.org/D139698

mlir/test/Conversion/MemRefToLLVM/memref-to-llvm.mlir
mlir/test/Dialect/Affine/SuperVectorize/vector_utils.mlir
mlir/test/Dialect/Arith/test-emulate-wide-int-pass.mlir
mlir/test/Dialect/Bufferization/Transforms/one-shot-module-bufferize-allow-return-allocs.mlir
mlir/test/Dialect/OpenMP/ops.mlir
mlir/test/Dialect/Tosa/ops.mlir
mlir/test/Dialect/Tosa/tosa-infer-shapes.mlir
mlir/test/Dialect/Vector/vector-contract-transforms.mlir
mlir/test/Target/SPIRV/logical-ops.mlir
mlir/test/mlir-cpu-runner/math-polynomial-approx.mlir

index 3c087ec..c12a078 100644 (file)
@@ -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>) {
index 7953394..e58de9f 100644 (file)
@@ -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.
index 9e14fff..e4ac6ec 100644 (file)
@@ -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
index 175803f..9cacaf0 100644 (file)
@@ -74,4 +74,4 @@ func.func @return_arg(%A: tensor<?xf32>) -> tensor<?xf32> {
 
 // NO-DROP-LABEL: func @return_arg
 //  NO-DROP-SAME:     %[[A:.*]]: memref<?xf32
-//       No_DROP:   return %[[A]]
+//       NO-DROP:   return %[[A]]
index ae19cb8..0957fb5 100644 (file)
@@ -145,7 +145,7 @@ func.func @omp_wsloop(%lb : index, %ub : index, %step : index, %data_var : memre
     (index, index, index) -> ()
 
   // CHECK: omp.wsloop linear(%{{.*}} = %{{.*}} : memref<i32>) 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
index ac7bf49..aa91e0f 100644 (file)
@@ -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>
index 70a07db..1cc9eb2 100644 (file)
@@ -352,7 +352,7 @@ func.func @test_dynamic_mixed_matmul(%arg0 : tensor<?x3x?xi32>, %arg1 : tensor<?
 
 // -----
 
-// CHECK-LABLE: @test_table_static
+// CHECK-LABEL: @test_table_static
 func.func @test_table_static(%arg0 : tensor<4x5xi16>, %arg1 : tensor<513xi16>) -> () {
   // CHECK:"tosa.table"(%arg0, %arg1) : (tensor<4x5xi16>, tensor<513xi16>) -> tensor<4x5xi16>
   %0 = "tosa.table"(%arg0, %arg1) : (tensor<4x5xi16>, tensor<513xi16>) -> tensor<?x?xi16>
@@ -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<?x?xi16>
index 1c63337..d4dc35d 100644 (file)
@@ -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>
index c3545f8..16846ac 100644 (file)
@@ -80,9 +80,9 @@ spirv.module Logical GLSL450 requires #spirv.vce<v1.0, [Shader], []> {
     %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
   }
index b95f6be..a2cb109 100644 (file)
@@ -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) -> ()