The -o filter in tests/test-backend-ops is a coverage-boundary control. In llama.cpp b11080, choosing an operation name does not mean the same thing as choosing an operation family. Before interpreting a passing run, first confirm that the binary is the b11080 build, decide whether the test should be exact or family-wide, and inspect which cases the command actually selected.
What changed
The b11080 pre-release notes say that tests/test-backend-ops now accepts regex entries in its -o filter. The option still accepts a comma-separated list of exact operation names or full test-case strings. The important rule is how each entry is classified: a plain operation name keeps exact matching, while an entry that is not a plain operation name is treated as a regular expression matched against the operation name.
The release also reformats the tool’s help text. That is useful when checking the command’s local interface, but the release notes do not define the complete regex dialect. Do not infer support for every regex feature from the single example in the announcement.
Exact names versus families
Use an exact name when the question is about one operation. The release gives this boundary explicitly: -o ADD does not match ADD_EX. A result from that command should therefore be read as a result for the selected ADD cases, not as a result for every operation whose name begins with ADD.
Use a regex when the question is about a family. The release uses MUL_MAT.* as its example. Conceptually, that asks the selector to match operation names beginning with MUL_MAT, rather than naming one operation literally. Keep the pattern narrow enough that every selected case belongs to the question you are trying to answer.
The two forms answer different questions:
-o ADD
-o MUL_MAT.*
The first is an exact-name request. The second is a family-style request. A comma-separated filter can contain multiple entries, but each entry still needs an intentional interpretation. Treating all entries as literal names can under-select a family; treating all entries as broad patterns can select cases that were not part of the intended check.
A small verification routine
-
Check the version before running the test. The documented behavior belongs to the b11080 pre-release, so do not silently attribute it to an older or different binary.
-
Write down the coverage question. If it is “does the
ADDoperation pass?”, use the plain name. If it is “do the matrix-multiplication variants pass?”, use a deliberately scoped family pattern such as the release’sMUL_MAT.*example. -
Read the tool’s help output for the installed build and record the command you used. The b11080 notes mention a help-text reformat, but the release description is not a substitute for the binary’s own interface.
-
Verify the selected cases in the test output or the tool’s listing mode before relying on the result. Confirm that an exact request did not expand to a family and that a family request did not include an unrelated operation. If the output does not make the selection observable, treat the scope as unverified and investigate before drawing a conclusion.
What a pass means
A passing run supports the cases that the filter selected. It does not, by itself, establish model quality, inference speed, or the correctness of every backend path. Those are separate questions requiring their own tests and evidence. The practical benefit of the b11080 change is more precise test selection: you can choose a single operation or a named family, then keep the interpretation of the result aligned with that choice.
The safe habit is simple: version first, selector intent second, selected-case verification third, and only then interpretation. This prevents a successful but under-scoped command from being mistaken for broad backend coverage.