Skip to content

docs/design.md: contract rows for ops merged without one - #839

Merged
ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
LouisRiverstone:docs-contract-rows
Nov 22, 2026
Merged

ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
LouisRiverstone:docs-contract-rows

Conversation

@LouisRiverstone

Copy link
Copy Markdown
Contributor

AGENTS.md asks for a docs/design.md contract row for every new translator rule. These ops of mine were merged without one. @KoertLichtendonk asked for it in #634, and it's a follow-up to PROC-20 / #666, which covered #544, #549 and #577. Docs only.

Change

Four rows in the translator contract table, after v_lerp_u8. Each gives the rule, its source, the semantic tests that check it, and the GPU runs reviewers reported on the PRs (translated SPIR-V on NVIDIA/RADV, not native RDNA2):

The ops in my still-open translator PRs (#792, #796, #810, #814, #817, #825, #828) get their rows in those PRs.

Tested

  • Docs only. tests/test_shader_meta.py and tests/test_hashdict.py, which read docs/design.md, pass, and tests/semantic is unaffected. I checked every rule against the merged code and tests.

AI-assisted (Claude Code): it wrote the rows from the merged PRs, and ran the checks listed above.

AGENTS.md asks for a contract row for every new translator rule; these went
in without one (follow-up to PROC-20 / ItsNotRexed#666, asked for in ItsNotRexed#634): s_cmov_b32 /
s_cmovk_i32 / s_pack_*, the 64-bit scalar data ops (s_brev_b64, s_bfe_*64,
s_bitset*_b64, s_flbit_i32_*64), v_mul_hi_*24 / v_lshrrev_b64 / v_ashrrev_i64
/ v_qsad_pk_u16_u8 / v_mqsad_pk_u16_u8, and the constant/ordered VOPC
compares, v_cvt_off_f32_i4 and v_pipeflush. Each row gives the rule, its
source, the semantic tests and the GPU runs reviewers reported on the PRs.
@kapitche

Copy link
Copy Markdown
Contributor

Reviewed bf902d2 (docs only). I checked the four new contract rows against main: all 20 ops they name are handled in tools/rdna2spirv.py, and all 12 semantic test files they cite exist under tests/semantic/. I didn't check the quoted semantics against the ISA, and the GPU results come from the original PRs.

@ItsNotRexed
ItsNotRexed merged commit b7e8719 into ItsNotRexed:main Nov 22, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants