Repository navigation
Conversation
Grimkaaah
left a comment
There was a problem hiding this comment.
Independent Linux CPU review
What changed: packed-conversion VALU ops get operand/encoding/modifier validation + positive controls (test_cvt_pk_validation).
Checked: tests/semantic/test_cvt_pk_validation.py — 5 passed.
Looks correct; no game files.
|
Tested
AI-assisted (Claude Code). |
|
Tested 53e3da3 on Windows 11 Home 26300, CPU and two GPUs, NVIDIA RTX 5090 (621.24, Based on
Not run: spirv-val (not installed here), Linux, macOS, the game corpus. -AI Assisted |
|
Tested
No GPU, no game data. AI-assisted. |
|
Tested 53e3da3 on Windows 11 (NTFS), Python 3.12.10 (CPU only, no GPU, no game files): pass, but it conflicts with #7683 (see below) The two reviews above cover the suite, the negative control and the GPU A/B. This adds the LLVM forms, hand listings and the overlap. What I ran:
Valid forms: I took all 252 lines for the seven ops in LLVM's Invalid forms that Conflict with #7683 (
Other overlap: #9190 (a VALU destination must be a VGPR) merges cleanly with this PR. On the merged tree, both new tests pass. Nit: the PR description stops after "(VOP2 _e32 opcode". It has a tab and vertical tabs where AI-assisted (Claude Code). |
Claim: #9065 (comment)
Summary
Adds centralized operand, encoding, and modifier validation (Gen._validate_cvt_pk) for the 7 packed-conversion VALU ops in ools/rdna2spirv.py: