Repository navigation
Conversation
|
Independent Windows CPU check at
No GPU or game files were used. AI-assisted (Codex). |
hmodymac8-droid
added a commit
to hmodymac8-droid/Leonida
that referenced
this pull request
Nov 23, 2026
…nts as llvm-mc does Review on ItsNotRexed#7421 (AsgerCode): s_dcache_wb (0x21, no operands) is gfx101x-only like the rest and was still invalid; llvm-mc 23.1.6 decodes its vector 000084f400000000 on gfx1013 and refuses it on gfx1030. Added to SMEM_GFX101. The probe mode is printed as llvm-mc 23.1.6 prints it: decimal up to 64, hex from 65 (all 128 values of s_atc_probe and s_atc_probe_buffer checked). The table now uses the plain SDATA field for it and the decoder keys on the name, so no new operand name enters rdna2_isa_tables (ItsNotRexed#6237 checks them). The test moves next to test_mubuf_mtbuf_mimg_global_ds_exp_vintrp, apart from the other open rdna2_decode PRs' tests, and gains the 64/0x41 probe cases and s_dcache_wb. AI-assisted (Claude Code). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
Tested 96dde30 merged with main 7c08216 on Linux/Python 3.12.16: pass Test-only: a new tests/test_rdna2_isa_tables.py (6 tests) for tools/rdna2_isa_tables.py.
|
Contributor
|
Tested
No game files. AI-assisted (Claude Code). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claimed in the coordination issue as: #6089 (comment)
What and why
Adds
tests/test_rdna2_isa_tables.py, a standalone standard-library test suite pinning the structural and decoder-contract invariants oftools/rdna2_isa_tables.py(which currently has no dedicated test file):tools/rdna2_isa_tables.pyandT.<TABLE>references intools/rdna2_decode.py.tools/rdna2_isa_tables.py(which Python silently overwrites on import).ints within each encoding's RDNA2 hardware bit-width.(mnemonic, operands)entry schemas, per-encoding mnemonic prefixes, unique mnemonics per table, and valid(name, width, kind)operand 3-tuples (allowing repeatedVCConly for carry-in/out instructions).VOP3andVOP3B, plusSDSTpresence on everyVOP3Bentry.VOP3/VOP3BandVOPC/VOP2/VOP1_e32-promoted opcodes.The checks are strictly schema- and contract-invariant (no hardcoded table lengths or individual opcode pins), so additive or dead-opcode cleanup PRs touching
rdna2_isa_tables.py(such as #5641 and #3677) remain unaffected.Tested
Windows, CPU-only (no GPU, no LLVM, no game files; branched from
ItsNotRexed/Leonidamainat561b65a83):python -I tests/test_rdna2_isa_tables.py -v— 6 tests OK (0.046s)python -m unittest tests.test_rdna2_isa_tables -v— 6 tests OK (0.041s)python -m compileall -q make_game.py tools tests— pass (exit 0)python -I tests/test_text_write_line_endings.py— 3 tests OK (6.964s)git diff --cached --check— clean (exit 0); verified LF-only line endings and trailing newlineAI-assisted: yes
Checklist
docs/design.md, with how it was confirmed. (N/A — no translator rules added)