[Mlir-commits] [mlir] [mlir][tosa] Fix validation check on controlflow operators (PR #159754)
Luke Hutton
llvmlistbot at llvm.org
Wed Sep 24 10:13:49 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
----------------
lhutton1 wrote:
Thanks, you're more familiar with FileCheck/LIT so appreciate any suggestion. Without this fix, these tests still passed without FileCheck. I suspect it's because they were returning a silent failure? So I used FileCheck here to help make sure that something was returned from `mlir-opt` and that the test would fail as expected without the fix.
I think you're correct that I didn't need to use `CHECK-LABEL`, I was just following the pattern used by most tests under TOSA.
https://github.com/llvm/llvm-project/pull/159754
More information about the Mlir-commits
mailing list