[Mlir-commits] [mlir] [mlir][tosa] Fix validation check on controlflow operators (PR #159754)
    Thomas Preud'homme 
    llvmlistbot at llvm.org
       
    Thu Sep 25 01:22:29 PDT 2025
    
    
  
================
@@ -0,0 +1,34 @@
+// RUN: mlir-opt %s -split-input-file -verify-diagnostics --tosa-validate="profile=pro_int,pro_fp extension=int16,int4,bf16,fp8e4m3,fp8e5m2,fft,variable,controlflow,doubleround,inexactround strict-op-spec-alignment" | FileCheck %s
+
+// -----
+
+// CHECK-LABEL: test_cond_if_isolated_from_above
----------------
RoboTux wrote:
For checking the absence of an error you could just remove the --split-input-files and then mlir-opt should return an error if any of the test fail to compile. On the other hand having CHECK-LABEL means you'll get a more precise error of which test fail so maybe worth keeping. The CHECK-LABEL without a FileCheck invocation though is waiting for trouble because someone might add some tests thinking that FileCheck is being run and wrongly conclude that their test work.
https://github.com/llvm/llvm-project/pull/159754
    
    
More information about the Mlir-commits
mailing list