Shaders: the RDNA decoder accepts the inline 0 in an unread VOP3 source #25
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ThatRecompDev--five-star-recomp!25
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/25/head"
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?
@Sr-0w on GitHub · 2026-11-25 10:25 UTC · original
Sr-0w:shaders/vop3-unused-inline-zero→main· +19 −2 · 3 files · 1 commits · merged 2026-11-25 11:02 UTCllvm-mc 23 writes source code 0x80 (the inline constant 0) into the VOP3 sources an instruction does not read, where the release that assembled the committed test binaries wrote 0.
v_cmp_gt_u32_e64 s40, 4, v0now assembles tod4c40028 02020084instead ofd4c40028 00020084. llvm-objdump lists both as the same compare, butVop3Decoderrequired unread sources to be 0 and made the dword.long, so a new compute case with a VOP3 compare, assembled with a current LLVM, fails to translate (UnsupportedProgramException: .long).The decoder now accepts 0 or the inline 0 there; any other value is still
.long.RdnaDecoderTests.An_unread_vop3_source_may_be_the_inline_zerodecodes the llvm-mc 23 words.Found while adding a test case for another change (the AMDGPU-enabled llvm-mc I used is MSYS2's ucrt64 build, since the official Windows release only has the x86 target).
🤖 Generated with Claude Code