[Mlir-commits] [mlir] [mlir][spirv] Fix test (NFC) (PR #163413)
    llvmlistbot at llvm.org 
    llvmlistbot at llvm.org
       
    Tue Oct 14 08:45:19 PDT 2025
    
    
  
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-mlir
Author: Erick Ochoa Lopez (amd-eochoalo)
<details>
<summary>Changes</summary>
This test had a CHECK-RAW command. The intention behind this command appears to be to avoid using the regular expression matching capabilities. However, this was interpretted as a comment by FileCheck. In order to check for literal strings the {LITERAL} modifier should be used. https://llvm.org/docs/CommandGuide/FileCheck.html#directive-modifiers
---
Full diff: https://github.com/llvm/llvm-project/pull/163413.diff
1 Files Affected:
- (modified) mlir/test/Integration/GPU/SPIRV/simple_add.mlir (+10-1) 
``````````diff
diff --git a/mlir/test/Integration/GPU/SPIRV/simple_add.mlir b/mlir/test/Integration/GPU/SPIRV/simple_add.mlir
index cb16c376eaa6f..b3154d4b91516 100644
--- a/mlir/test/Integration/GPU/SPIRV/simple_add.mlir
+++ b/mlir/test/Integration/GPU/SPIRV/simple_add.mlir
@@ -3,7 +3,16 @@
 // RUN: | FileCheck %s
 
 // CHECK: data =
-// CHECK-RAW: [[[7.7,    0,    0], [7.7,    0,    0], [7.7,    0,    0]], [[0,    7.7,    0], [0,    7.7,    0], [0,    7.7,    0]], [[0,    0,    7.7], [0,    0,    7.7], [0,    0,    7.7]]]
+// CHECK{LITERAL}: [[[7.7,    0,    0],
+// CHECK{LITERAL}: [7.7,    0,    0],
+// CHECK{LITERAL}: [7.7,    0,    0]],
+// CHECK{LITERAL}: [[0,    7.7,    0],
+// CHECK{LITERAL}: [0,    7.7,    0],
+// CHECK{LITERAL}: [0,    7.7,    0]],
+// CHECK{LITERAL}: [[0,    0,    7.7],
+// CHECK{LITERAL}: [0,    0,    7.7],
+// CHECK{LITERAL}: [0,    0,    7.7]]]
+
 module attributes {
   gpu.container_module,
   spirv.target_env = #spirv.target_env<
``````````
</details>
https://github.com/llvm/llvm-project/pull/163413
    
    
More information about the Mlir-commits
mailing list