feat(rdna2): implement VOP3P packed f16, v_dot2_f32_f16, v_fma_mix_*, and v_pk_fmac_f16 (1,296/1,490) #302
No reviewers
Labels
No labels
accessibility
bloqué : binaire console
bug
chargeur
console-dll
cpu
documentation
duplicate
enhancement
good first issue
gpu
help wanted
invalid
performance
question
runtime-gdk
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LooperSalty--AnyXboxX!302
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-302"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Lewandox on GitHub · 2026-11-26 01:53 UTC · original
Lewandox:feat/rdna2-vop3p-pkf16-mix→main· +672 −20 · 10 files · 2 commits · merged 2026-11-26 11:07 UTCChange
Implements all 9 remaining
VOP3Pinstructions plusv_pk_fmac_f16(VOP20x3CandVOP30x13C) in both the RDNA 2 reference interpreter (PrototypeScarlett/emu/rdna2_exec_pkf16.py) and the HLSL recompiler (PrototypeScarlett/emu/rdna2_hlsl_pkf16.py, wired for wave32, wave64, and graphics stages), closingVOP3Pcoverage at 100% and bringing total RDNA 2 ISA coverage from 1,285/1,490 to 1,296/1,490:VOP3P):v_pk_fma_f16,v_pk_add_f16,v_pk_mul_f16,v_pk_min_f16,v_pk_max_f16— fullop_sel,op_sel_hi,neg_lo,neg_hi,clamp([0, 1], NaN/negatives ->+0.0), and inline float constant replication across both halves.VOP2&VOP3):v_pk_fmac_f16(including VOP3clamp, inline float constant replication, and refusal of unsupported SDWA/DPP or unmeasured VOP3 modifiers).VOP3P):v_fma_mix_f32,v_fma_mixlo_f16,v_fma_mixhi_f16—op_sel_hi[i]selects f16 vs. f32 source,op_sel[i]selects f16 half (refused whenop_sel_hi[i] == 0),neg_hi[i]=abs,neg_lo[i]=neg, single-rounding f32 FMA (_fma/FmaF32),[0, 1]clamp, and untouched-half preservation onmixlo/mixhi.VOP3P):v_dot2_f32_f16—op_sel/op_sel_hi/neg_lo/neg_hi/clampwith refusal ofop_sel[2]/neg_hi[2]on the 32-bitf32accumulatorsrc2.Verification
Windows 11 (26300), Python 3.12.10:
.venv\Scripts\python.exe -m pytest tests/test_rdna2_exec_pkf16.py tests/test_rdna2_hlsl_pkf16.py tests/test_rdna2_exec_dot.py -vv: all non-GPU tests passed (@gputests skipped locally becausedxc/anyxboxx_gpu_run.exeis not installed on this machine; CI runs the Python suite)..venv\Scripts\python.exe -m pytest -q: 1355 passed, 321 skipped, 0 failed, includingtest_readme_sync.py.rdna2_exec.coverage():(1296, 1490)(allVOP3Pmnemonics covered).ruffcheck: clean (verified in CI).Oracle and test data
VOP3PInstructions.td/AMDGPUBaseInfo.cpp(getInlineEncodingV216,SelectVOP3PMadMixModsImpl).tests/test_rdna2_exec_pkf16.pyandtests/test_rdna2_hlsl_pkf16.py.main(Untranslated/ missing coverage) without this change.Checklist
Untranslated), never a fake success.test_readme_sync.py(stays within the current test-count hundred).AI assistance: Antigravity assisted with implementing the interpreter/HLSL modules, tests, and PR description; verified locally.