shader: pin the GFX10 operand-field decode rules with unit tests #305
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/305"
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?
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-27T10:49:16Z.
fields.rs had no tests of its own; its rules were only exercised indirectly through whole-program lowering tests. Add gfx10/fields_tests.rs (declared under cfg(test), so the build hash is unchanged) pinning Instruction::fields on hand-assembled words: source codes and the literal, per-opcode dword counts, wave64 lane-mask sizing, the madmk/madak literal positions, the SDWA and DPP16/DPP8 forms, VOP3 source counts and the VOP3B carry-out, and the SMEM/MUBUF/MIMG/DS/VINTRP/EXP field layouts.
What this changes
How it was tested
cargo test --target x86_64-apple-darwin -p victory-hle -p victory-loader -p victorycargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warningsChecklist
VICTORY_*variable and documented