Skip to content

docs: design.md contract rows for the SAD, sext/flbit and lerp ops (PROC-20) - #666

Merged
ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
esteban-dcp:proc-20-contract-rows
Nov 22, 2026
Merged

ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
esteban-dcp:proc-20-contract-rows

Conversation

@esteban-dcp

Copy link
Copy Markdown

PROC-20 (claimed in #634).

#544 (v_sad_*, v_msad_u8), #549 (s_sext_i32_i8/i16, s_flbit_i32) and #577 (v_lerp_u8) merged without a row in the docs/design.md contract table, which AGENTS.md asks for. This adds one row per group, after Byte permute:

  • the semantics, which I re-read against the RDNA2 ISA pseudocode instead of copying the PR text (V_SAD_U8/HI_U8/U16/U32, V_MSAD_U8, V_LERP_U8 in the VOP3 table; S_FLBIT_I32, S_SEXT_I32_I8/I16 in the SOP1 table; all match what the PRs implement);
  • what is not handled: clamp on the SAD and lerp ops raises Unsupported, as those PRs chose because the ISA does not define it;
  • how each was confirmed: the CPU tests the PR added (file name, what they cover), and the 300-case differential run Translator: v_sad_u8, v_sad_hi_u8, v_sad_u16, v_sad_u32, v_msad_u8 #544 reports. None of the ops is in the translated corpus and none is GPU-checked, and the rows say so.

Docs only, one file, no game files. AI-assisted (Claude Code).

🤖 Generated with Claude Code

…ROC-20)

ItsNotRexed#544, ItsNotRexed#549 and ItsNotRexed#577 merged without a row in the contract table, which
AGENTS.md asks for. One row per group, each with the semantics (checked
against the RDNA2 ISA pseudocode), what is not handled (clamp on the SAD and
lerp ops) and how it was confirmed (the CPU tests added by the PR); none is
GPU-checked.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings November 22, 2026 01:44

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@matheuskshn

Copy link
Copy Markdown
Contributor

Cross-checked the new rows at 6495f43 and ran their CPU suites on Windows 11 / Python 3.12.14: SAD 5/5, sext/flbit 3/3, and lerp 5/5. The tests exercise the distinction between masked and unmasked SAD, unchanged SCC on the scalar operations, and the low bit of each lerp rounding byte. The rows accurately label these as CPU checks. AI-assisted validation.

@ItsNotRexed
ItsNotRexed merged commit c043350 into ItsNotRexed:main Nov 22, 2026
6 checks passed
LouisRiverstone added a commit to LouisRiverstone/Leonida that referenced this pull request Nov 22, 2026
main pins 48557ea again since the ItsNotRexed#666-ItsNotRexed#698 merge round, while
tools/rpf9dump/Program.cs (3816356) already uses ArchiveEntry.ResourceDrawableOffset
from 917e9b9, so the Windows 'check' job fails to compile rpf9dump on every
PR. Same one-line change as ItsNotRexed#713 / ItsNotRexed#732; whichever lands first, this merges
cleanly.
LouisRiverstone added a commit to LouisRiverstone/Leonida that referenced this pull request Nov 22, 2026
main pins 48557ea again since the ItsNotRexed#666-ItsNotRexed#698 merge round, while
tools/rpf9dump/Program.cs (3816356) already uses ArchiveEntry.ResourceDrawableOffset
from 917e9b9, so the Windows 'check' job fails to compile rpf9dump on every
PR. Same one-line change as ItsNotRexed#713 / ItsNotRexed#732; whichever lands first, this merges
cleanly.
LouisRiverstone added a commit to LouisRiverstone/Leonida that referenced this pull request Nov 22, 2026
main pins 48557ea again since the ItsNotRexed#666-ItsNotRexed#698 merge round, while
tools/rpf9dump/Program.cs (3816356) already uses ArchiveEntry.ResourceDrawableOffset
from 917e9b9, so the Windows 'check' job fails to compile rpf9dump on every
PR. Same one-line change as ItsNotRexed#713 / ItsNotRexed#732; whichever lands first, this merges
cleanly.
LouisRiverstone added a commit to LouisRiverstone/Leonida that referenced this pull request Nov 22, 2026
main pins 48557ea again since the ItsNotRexed#666-ItsNotRexed#698 merge round, while
tools/rpf9dump/Program.cs (3816356) already uses ArchiveEntry.ResourceDrawableOffset
from 917e9b9, so the Windows 'check' job fails to compile rpf9dump on every
PR. Same one-line change as ItsNotRexed#713 / ItsNotRexed#732; whichever lands first, this merges
cleanly.
LouisRiverstone added a commit to LouisRiverstone/Leonida that referenced this pull request Nov 22, 2026
main pins 48557ea again since the ItsNotRexed#666-ItsNotRexed#698 merge round, while
tools/rpf9dump/Program.cs (3816356) already uses ArchiveEntry.ResourceDrawableOffset
from 917e9b9, so the Windows 'check' job fails to compile rpf9dump on every
PR. Same one-line change as ItsNotRexed#713 / ItsNotRexed#732; whichever lands first, this merges
cleanly.
LouisRiverstone added a commit to LouisRiverstone/Leonida that referenced this pull request Nov 22, 2026
main pins 48557ea again since the ItsNotRexed#666-ItsNotRexed#698 merge round, while
tools/rpf9dump/Program.cs (3816356) already uses ArchiveEntry.ResourceDrawableOffset
from 917e9b9, so the Windows 'check' job fails to compile rpf9dump on every
PR. Same one-line change as ItsNotRexed#713 / ItsNotRexed#732; whichever lands first, this merges
cleanly.
LouisRiverstone added a commit to LouisRiverstone/Leonida that referenced this pull request Nov 22, 2026
main pins 48557ea again since the ItsNotRexed#666-ItsNotRexed#698 merge round, while
tools/rpf9dump/Program.cs (3816356) already uses ArchiveEntry.ResourceDrawableOffset
from 917e9b9, so the Windows 'check' job fails to compile rpf9dump on every
PR. Same one-line change as ItsNotRexed#713 / ItsNotRexed#732; whichever lands first, this merges
cleanly.
LouisRiverstone added a commit to LouisRiverstone/Leonida that referenced this pull request Nov 22, 2026
main pins 48557ea again since the ItsNotRexed#666-ItsNotRexed#698 merge round, while
tools/rpf9dump/Program.cs (3816356) already uses ArchiveEntry.ResourceDrawableOffset
from 917e9b9, so the Windows 'check' job fails to compile rpf9dump on every
PR. Same one-line change as ItsNotRexed#713 / ItsNotRexed#732; whichever lands first, this merges
cleanly.
LouisRiverstone added a commit to LouisRiverstone/Leonida that referenced this pull request Nov 22, 2026
main pins 48557ea again since the ItsNotRexed#666-ItsNotRexed#698 merge round, while
tools/rpf9dump/Program.cs (3816356) already uses ArchiveEntry.ResourceDrawableOffset
from 917e9b9, so the Windows 'check' job fails to compile rpf9dump on every
PR. Same one-line change as ItsNotRexed#713 / ItsNotRexed#732; whichever lands first, this merges
cleanly.
ItsNotRexed pushed a commit that referenced this pull request Nov 22, 2026
AGENTS.md asks for a contract row for every new translator rule; these went
in without one (follow-up to PROC-20 / #666, asked for in #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.
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.

4 participants