You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: decode gfx1013 VOP3 0x140 as mad legacy - #5103
Superseded: the initial remote branch was based on stale fork history, which produced an incorrect whole-file diff. Closing this PR and resubmitting the identical two-file fix from clean upstream-based history.
The new test's own hand-encoded instruction exposes a target regression. Using the table from 07ae495c with the decoder and shader_disasm.disasm() from current main 3faac557, I get:
Target
Python backend with this table
llvm-mc
gfx1013
v_mad_legacy_f32
v_mad_legacy_f32
gfx1030
v_mad_legacy_f32
v_fma_legacy_f32
All four calls reported zero invalid instructions. With #4928 at 200a4c3f, Python agrees with llvm-mc on both targets using that same word. Please coordinate with #4928 (BUILD-806) before rebasing. Its target-aware change already covers this opcode, and the PR description here reverses the GFX10.1/GFX10.3 assignments.
Separately, the exact #5103 head is based on b469cfec. In an isolated checkout, python -I tests/test_rdna2_decode.py exits at import with ModuleNotFoundError: No module named 'rdna2_decode'. A trial merge with current main gives add/add conflicts in both changed files. The table above used an isolated overlay specifically to check the intended behavior. CPU only, public synthetic fixture, AI-assisted.
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
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.
Superseded: the initial remote branch was based on stale fork history, which produced an incorrect whole-file diff. Closing this PR and resubmitting the identical two-file fix from clean upstream-based history.