[llvm] [llvm-exegesis] Add did-you-mean hint for unknown opcodes (PR #203463)
Quanye Yang via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 12 21:24:30 PDT 2026
================
@@ -0,0 +1,39 @@
+# Verify that skipping an entry with a misspelled opcode name includes a
+# "did you mean ?" hint when a close match exists.
+
+# RUN: llvm-exegesis -mode=analysis -benchmarks-file=%s -analysis-clusters-output-file=- -analysis-clustering-epsilon=0.1 -analysis-inconsistency-epsilon=0.1 -analysis-numpoints=1 2> %t.err | FileCheck -check-prefix=CHECK-CLUSTERS %s
+# RUN: FileCheck -check-prefix=CHECK-WARN %s < %t.err
+
+# CHECK-WARN: warning: skipping benchmark entry: No opcode with name 'VADDPDYrrr' - did you mean 'VADDPDYrr' ?
+# CHECK-WARN: warning: skipped 1 benchmark entries that could not be parsed
+
----------------
quanyeyang wrote:
I add a test here now.
https://github.com/llvm/llvm-project/pull/203463
More information about the llvm-commits
mailing list