tests: align s_bfe exec expectations with RDNA2 hardware rule #102

Closed
github-bot wants to merge 1 commit from gh-pr/102/head into gh-pr/102/base
Owner

@⁠Trwthh on GitHub · 2026-11-22 09:13 UTC · original
Trwthh:fix/s-bfe-exec-expectations → main · +18 −3 · 2 files · 102 commits · closed without merging

Summary

  • 27 s_bfe_i64 / s_bfe_u32 test expectations were stale (did not match RDNA2 hardware behavior)
  • Translator is correct per PR #78: offset = b & (bits-1), width = (b>>16)&127, width 0 -> 0, width >= bits -> whole shifted value, signed: sign-fills from bit w-1, SCC = result != 0
  • Tests-only change: no translator code modified

References #78

Test plan

  • cargo test -p tombox-xshader now fully green (0 failures vs 27 previously)
  • Both scalar_sop2 and vop::basic::salu_basic pass
**@⁠Trwthh** on GitHub · 2026-11-22 09:13 UTC · [original](https://github.com/omonkeyz/xbox-emulator/pull/102) `Trwthh:fix/s-bfe-exec-expectations` → `main` · +18 −3 · 2 files · 102 commits · closed without merging ## Summary - 27 `s_bfe_i64` / `s_bfe_u32` test expectations were stale (did not match RDNA2 hardware behavior) - Translator is correct per PR #78: offset = `b & (bits-1)`, width = `(b>>16)&127`, width 0 -> 0, width >= bits -> whole shifted value, signed: sign-fills from bit w-1, SCC = result != 0 - Tests-only change: no translator code modified References #78 ## Test plan - `cargo test -p tombox-xshader` now fully green (0 failures vs 27 previously) - Both `scalar_sop2` and `vop::basic::salu_basic` pass
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 06:10:32 +00:00
github-bot closed this pull request 2026-11-26 06:10:32 +00:00
Author
Owner

@⁠omonkeyz on GitHub · 2026-11-22 13:13 UTC · original

Main's history was rewritten, which auto-closed this PR (sorry for the noise). Already on main with equivalent code (b72625c), so nothing is left to apply. Thanks for the fix!

**@⁠omonkeyz** on GitHub · 2026-11-22 13:13 UTC · [original](https://github.com/omonkeyz/xbox-emulator/pull/102#issuecomment-7079649972) Main's history was rewritten, which auto-closed this PR (sorry for the noise). Already on main with equivalent code (b72625c), so nothing is left to apply. Thanks for the fix!

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.