ISA sweep: s_bfe and v_cvt_(pk)norm reference models checked against RDNA2 hardware (resubmits #78) #383
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
library
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/omonkeyz--xbox-emulator!383
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-383"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@SchmashinPrunes on GitHub · 2026-11-25 15:39 UTC · original
SchmashinPrunes:rdna2-hw-refs-v3→main· +899 −2 · 5 files · 1 commits · open@omonkeyz, this is the resubmission of #78, which the 11-22 history rewrite closed. You asked for it to come after #41 and #72. Both are on main now (#133, and
valu_probe.pythrough #208), so here it is, rebuilt ona618736as you asked: only the test, the hardware record and the generator. It has nodocs/ortools/progressedits and no comment lines.It covers exactly the 10 mnemonics that
tools/progress/progress.jsonstill lists underrdna2_pending("awaiting independent verification"):s_bfe_{i,u}{32,64},v_cvt_norm_{i,u}16_f16andv_cvt_pknorm_{i,u}16_{f16,f32}. Moving them is yours to do in a sync if you take this.Library / area: tombox-xshader tests (ISA sweep). No translator change.
Exports changed (exports.txt rows): none
Source of the behaviour: results recorded on RDNA2 hardware with the
sbfeandnormprobes ofvalu_probe.py(@QuentinDanblon's, from #72), first posted in the #41 thread.rdna2_hw::SOURCE, which the test prints.valu_probe.py,tools/rdna2-hwprobe/sweep_vectors.pyregeneratesrdna2_hw.rsfrom them byte for byte (rechecked today).What RDNA2 does
s_bfe_{u,i}{32,64}:All 152 measured cases match
ops_s::bfe64.v_cvt_norm_*/v_cvt_pknorm_*:v_cvt_norm_*keeps the upper half of D.This matches
ops_v::norm16(and sotb_nrm) everywhere.Change
tests/isa_sweep/rdna2_hw.rsis the hardware record, generated bysweep_vectors.py:s_bfecases as literals;NRM_F32edge grid for the two f32 pknorm forms, plus 512 literal random pairs.tests/isa_sweep.rsgets a new CPU-only test,sweep_references_match_rdna2, that checksbfe64andnorm16against the record.bfe64andNRM_F32becomepubfor it.WARP_KNOWN, which I kept as main has it.Tests
Windows 11, WARP, this branch on
a618736:tombox-xshadersuite passes:isa_sweep3/3,tests/exec.rs189/189, and every other target.Mutation check (from the first submission): each of these planted model changes makes the new test fail:
Independent cross-check by @QuentinDanblon on #78: the record's inputs equal the probe's case lists, and #72's Python models, which share no code with
bfe64/norm16, reproduce every digest and literal.cargo test -p tombox-xshaderpasses🤖 Generated with Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.