fix: lower binary64 class comparisons in VIctory #313
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!313
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-313"
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?
@mauroalvare on GitHub · 2026-11-26 02:19 UTC · original
mauroalvare:codex/victory-f64-class→main· +117 −26 · 2 files · 3 commits · openChange
Neptune's RDNA 2 recompiler decoded
v_cmp_class_f64andv_cmpx_class_f64, then reportedUnsupportedwhen either comparison fed a live result. That stopped DXIL emission before the D3D12 compute pipeline could be created.Extend the existing IEEE class lowering to use both dwords of a binary64 operand. The low dword participates in the fraction zero check, so a signaling NaN with a low-word payload and the smallest subnormal classify correctly. The operand reader applies abs and neg to the sign bit and sign-extends inline integer constants. The comparison uses i32 operations throughout and writes its result through the existing lane-mask or EXEC path.
This is the Rust DXIL emitter used by
third_party/victorywhen launched throughtools/lancer_victory.ps1.Verification
Base
c4c93bdc413191a9dc909998d2d53080a3f0c880. Fixa318d64335e02f823f60ea7c65d34111094d22fb.From
third_party/victory:The new tests validated the DXIL with the Windows SDK validator (1.8.2502.11), created the D3D12 pipelines, and read back all 38 wave32 cases on the RTX 5070 Ti (driver 621.40, 32-lane waves) and on WARP (4-lane waves). On the RTX, a paired wave64 shader also matched all 64 console lanes for each of two EXEC masks.
The shader suite's existing skips include two ignored cases, four console-compiler comparisons that returned early, and two adapter-specific subcases in the wave-sum tests.
From the repository root, using the built runtime, TomBox DLLs, SDK DXC and the RTX 5070 Ti:
Oracle and test data
The new tests construct shader words and register inputs in the test source. All ten expected IEEE classes follow AMD's RDNA 2 ISA, and the Python reference interpreter agreed on all twelve binary64 patterns and four constant operands. The encoding was cross-checked against LLVM's GFX10 assembler tests. AMD RDNA 2 ISA, §12.9 · LLVM VOPC e64 tests · LLVM CMPX tests
AI assistance from OpenAI Codex for investigation, implementation, and testing.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.