rdna2spirv: decode gfx1013 VOP3 0x16b opcode #278

Open
github-bot wants to merge 1 commit from github-bot/gh-278 into main AGit
Owner

@⁠kotekompotek on GitHub · 2026-11-24 02:57 UTC · original
kotekompotek:work/build-1529-gfx1013-0x16b → main · +17 −5 · 4 files · 1 commits · open

Claimed in the coordination issue as: BUILD-1529 (#14)

What and why

  • Rebased onto current main.
  • Added gfx1013 VOP3 opcode 0x16b (v_mul_lo_i32) to tools/rdna2_isa_tables.py and docs/isa_coverage.md (table + text), updated "seven" -> "eight" in tools/rdna2_isa_tables.py and tools/rdna2_decode.py, and noted decoder coverage in docs/design.md.
  • Added decode unit test test_vop3_0x16b_v_mul_lo_i32 in tests/test_rdna2_decode.py.

Tested

  • python -I tests/test_rdna2_decode.py: 20 tests OK, 1 skipped (llvm-mc is absent).
  • python -I tests/test_isa_coverage.py: 22 tests OK, 4 skipped.
  • tests/test_docs_*.py: OK.

GPUs tested: n/a

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed.
**@⁠kotekompotek** on GitHub · 2026-11-24 02:57 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/278) `kotekompotek:work/build-1529-gfx1013-0x16b` → `main` · +17 −5 · 4 files · 1 commits · open Claimed in the coordination issue as: BUILD-1529 (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14) ### What and why - Rebased onto current `main`. - Added gfx1013 VOP3 opcode `0x16b` (`v_mul_lo_i32`) to `tools/rdna2_isa_tables.py` and `docs/isa_coverage.md` (table + text), updated `"seven"` -> `"eight"` in `tools/rdna2_isa_tables.py` and `tools/rdna2_decode.py`, and noted decoder coverage in `docs/design.md`. - Added decode unit test `test_vop3_0x16b_v_mul_lo_i32` in `tests/test_rdna2_decode.py`. ### Tested - `python -I tests/test_rdna2_decode.py`: `20 tests OK, 1 skipped` (`llvm-mc` is absent). - `python -I tests/test_isa_coverage.py`: `22 tests OK, 4 skipped`. - `tests/test_docs_*.py`: `OK`. GPUs tested: n/a AI-assisted: yes ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 08:51:43 +00:00
Author
Owner

@⁠Oliwettoo on GitHub · 2026-11-24 10:25 UTC · original

Checked on current main (the PR applies cleanly; the test_rdna2_decode failure on the PR's own base is from the old base, not this change). The opcode is right: LLVM 18 llvm-mc decodes 00006bd5 01050200 as v_mul_lo_i32 v0, v1, v2 for -mcpu=gfx1013 and rejects it for gfx1030, matching docs/design.md's gfx1013-only list.

Before merge: (1) docs/isa_coverage.md says a name added to rdna2_isa_tables.py "belongs in the table above as well", so add v_mul_lo_i32 there; (2) the docstrings of rdna2_isa_tables.py and rdna2_decode.py still say "seven" gfx1013 instructions; (3) one decode assertion for VOP3 0x16b in tests/test_rdna2_decode.py. Also there is no claim for this in #14. AI-assisted review.

**@⁠Oliwettoo** on GitHub · 2026-11-24 10:25 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/278#issuecomment-7128764543) Checked on current `main` (the PR applies cleanly; the `test_rdna2_decode` failure on the PR's own base is from the old base, not this change). The opcode is right: LLVM 18 `llvm-mc` decodes `00006bd5 01050200` as `v_mul_lo_i32 v0, v1, v2` for `-mcpu=gfx1013` and rejects it for `gfx1030`, matching `docs/design.md`'s gfx1013-only list. Before merge: (1) `docs/isa_coverage.md` says a name added to `rdna2_isa_tables.py` "belongs in the table above as well", so add `v_mul_lo_i32` there; (2) the docstrings of `rdna2_isa_tables.py` and `rdna2_decode.py` still say "seven" gfx1013 instructions; (3) one decode assertion for VOP3 0x16b in `tests/test_rdna2_decode.py`. Also there is no claim for this in #14. AI-assisted review.
Author
Owner

@⁠kotekompotek on GitHub · 2026-11-24 18:03 UTC · original

@⁠Oliwettoo Thanks for the review — addressed all points in 41d0d162e:

  • Added v_mul_lo_i32 (VOP3 0x16b) to docs/isa_coverage.md (both the table and text).
  • Updated "seven" -> "eight" in tools/rdna2_isa_tables.py and tools/rdna2_decode.py.
  • Kept the test_vop3_0x16b_v_mul_lo_i32 decode assertion in tests/test_rdna2_decode.py.
  • Claimed BUILD-1529 in coordination issue #14: #14

Re-ran locally:

  • python -I tests/test_rdna2_decode.py: 20 tests OK, 1 skipped (llvm-mc absent)
  • python -I tests/test_isa_coverage.py: 22 tests OK, 4 skipped
  • tests/test_docs_*.py: OK
**@⁠kotekompotek** on GitHub · 2026-11-24 18:03 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/278#issuecomment-7140087954) @⁠Oliwettoo Thanks for the review — addressed all points in `41d0d162e`: - Added `v_mul_lo_i32` (`VOP3 0x16b`) to `docs/isa_coverage.md` (both the table and text). - Updated `"seven"` -> `"eight"` in `tools/rdna2_isa_tables.py` and `tools/rdna2_decode.py`. - Kept the `test_vop3_0x16b_v_mul_lo_i32` decode assertion in `tests/test_rdna2_decode.py`. - Claimed `BUILD-1529` in coordination issue `#14`: https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14 Re-ran locally: - `python -I tests/test_rdna2_decode.py`: `20 tests OK, 1 skipped` (`llvm-mc` absent) - `python -I tests/test_isa_coverage.py`: `22 tests OK, 4 skipped` - `tests/test_docs_*.py`: `OK`
Author
Owner

@⁠kotekompotek on GitHub · 2026-11-25 07:45 UTC · original

Rebased on current ubi/main (3f81d46ac) and pushed. Conflicts resolved against the newer main changes; test suite for the touched area passes locally (xs_proxy_mock_test PASS on Windows; the int64-atomics semantic tests 6/6 and test_rdna2_decode 21/21 where applicable).

AI-assisted: yes

**@⁠kotekompotek** on GitHub · 2026-11-25 07:45 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/278#issuecomment-7156212755) Rebased on current ubi/main (3f81d46ac) and pushed. Conflicts resolved against the newer main changes; test suite for the touched area passes locally (xs_proxy_mock_test PASS on Windows; the int64-atomics semantic tests 6/6 and test_rdna2_decode 21/21 where applicable). AI-assisted: yes
This pull request has changes conflicting with the target branch.
  • tests/test_rdna2_decode.py
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/278/head:github-bot/gh-278'
git switch 'github-bot/gh-278'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-278'
git switch 'github-bot/gh-278'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-278'
git switch 'github-bot/gh-278'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-278'
git switch 'main'
git merge --squash 'github-bot/gh-278'
git switch 'main'
git merge --ff-only 'github-bot/gh-278'
git switch 'main'
git merge 'github-bot/gh-278'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.