Repository navigation
Conversation
…_pknorm_*_f16 and v_mac_legacy_f32 docs/design.md marks these float VALU rows not GPU-verified: the translations were CPU-checked (and, except v_mac_legacy_f32, the instructions measured on hardware), but the translated SPIR-V never ran on a GPU. cs_vfloat_ext.asm runs one lane through v_cmp_class_f16 (sNaN, -denormal, -inf, a miss) and v_cmp_class_f64 (-0, a qNaN against the sNaN bit, the smallest +denormal, +inf), one bit per case; v_fmamk_f16 and v_fmaak_f16 in both print orders, including the one rounding of (1+2^-10)*3 to 0x4202, with the high half kept; v_cvt_pknorm_i16_f16/u16_f16 at the even rounding of 0.5*32767, -inf, NaN and a clamped 2.0; and v_mac_legacy_f32 with the legacy 0 * inf = +0 rule. The eight expected words are derived in its header from the rows. Registered in check.py and run_gpu_tests.py next to cs_lds_atomics_ext; the five rows note the GPU check.
This was referenced Nov 24, 2026
Contributor
|
Author here: taken over in #373, rebased on |
Collaborator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):docs/design.mdmarks these float VALU rows Not GPU-verified: the translations were CPU-checked (and, exceptv_mac_legacy_f32, the instructions measured on hardware), but the SPIR-V the translator emits had never run on a GPU. No open PR adds a fixture for them.This adds
runtime/test/shaders/cs_vfloat_ext.asm(one lane, laid out likecs_lds_b64_cmpst.asm; 16-bit VOP2 destinations preset to0xA5A5A5A5):v_cmp_class_f160x0000000Bv_cmp_class_f640x0000000Dv_fmamk_f160xA5A54300v_fmaak_f160x42020xA5A54202v_cvt_pknorm_i16_f160x80014000v_cvt_pknorm_u16_f160xFFFF0000v_mac_legacy_f320x40000000v_mac_legacy_f320x40500000The words are derived in the
.asmheader from the rows. The fixture is registered incheck.pyandscripts/run_gpu_tests.pynext tocs_lds_atomics_ext. The five rows (including the separatev_cmp_class_f64row) keep their marker and add a "GPU-checked by" note. Thev_mac_legacy_f32note says it checks the translated SPIR-V, not the opcode on silicon (no RDNA2 desktop part has it).Tested on an AMD Radeon RX 7900 XT (RADV NAVI31, Mesa 26.3.1, subgroup 32..64), Artix Linux, llvm-mc 23.1.5:
cs_vfloat_extpasses with all eight words exact, native and withLEONIDA_W64_EMULATE=1.0x4201for word 3 makes it FAIL.scripts/run_gpu_tests.pysuite, native and emulated: no failure except the knownms_wave_info_s3flake (#6172).check.py,run_gpu_tests.py,design.mdor the shader fixtures: the same failure set as a clean worktree of the merge base (26, environment-only on this machine). The branch adds 2 passing tests and 12 subtests.Resubmitted from
#9601(closed with the other outside PRs on 2026-11-23), rebased ontomain2d53a8055. Related:#9494,#9761(merged),#9813. Synthetic fixture only, no game files. AI-assisted (Claude Code).On the rebased branch, the full suite on this card also shows
cs_imgload_tfe,cs_imgload_d16_tfe,cs_w32_exec_computedandcs_w64_exec_computedfailing; they fail the same way on a clean worktree ofmain, so they are not this change.