test(isa): the two parsers, on fixtures

isa_tools (fast tier) runs libr4d/isa/selftest.sh: no build tree, no card, no
ROCm. rows.awk at the nine 24-VGPR boundaries and at the wave64 quantum;
waterfall.awk on a forward branch after a movrel (not a loop), a real back-edge
(a loop), a movrel with no branch, and a kernel with no movrel after a kernel
that has one.

Against the code this replaces, five of the nine occupancy checks fail (97,
121, 145, 241, 256) and the forward-branch case counts a loop where there is
none. The rest pin behaviour that is right today: the movrel-with-no-branch row
and the empty kernel stay as they are, and the seen-flag reset in flush() has no
observable case in this tree -- waterfall.awk resets it per kernel so a later
edit cannot reintroduce one.
This commit is contained in:
orca authored and StillDeadcode committed 2026-10-27 18:24:13 +01:00
1 parent f406c4dafc
commit f69c9d8324
3 files changed
+93

No files matched your search

+6
View File
@@ -426,6 +426,12 @@ if(TARGET rad-avx-check AND TARGET libref)
set_tests_properties(avx_check_general PROPERTIES TIMEOUT ${RAD_TEST_TIMEOUT} ENVIRONMENT "${env}")
endif()
# The ISA instruments' parsers, on fixtures in the script: no build tree, no card, no ROCm. The
# wave counts at the 24-VGPR boundaries and the waterfall back-edge detection are the parts that
# can be wrong without anything else noticing.
add_test(NAME isa_tools COMMAND sh ${CMAKE_SOURCE_DIR}/libr4d/isa/selftest.sh)
set_tests_properties(isa_tools PROPERTIES TIMEOUT ${RAD_TEST_TIMEOUT})
# ================================================================== libr4d's kernels, on the host
#
# Some libr4d ops (the sandwich-norm joins, expert_scale) have no libref oracle by design