Loader: test the AMD-only instruction emulation on any CPU (including AMD!) #38

Merged
raffclar merged 2 commits from upstream-pr/38 into main 2026-11-24 00:32:45 +00:00
raffclar commented 2026-11-23 23:35:57 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by raffclar on 2026-11-23T23:35:57Z.


This PR adds tests that call the AMD-only instruction emulation directly so AMD processor owners can also be sure this emulation works

<!-- greyfinch-sync:Marvisak/VIctory:issue:6571101371 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/38). Originally posted by [raffclar](https://github.com/raffclar) on 2026-11-23T23:35:57Z. --- This PR adds tests that call the AMD-only instruction emulation directly so AMD processor owners can also be sure this emulation works
upstream-sync closed this pull request 2026-11-24 06:51:01 +00:00
DaviTostes commented 2026-11-24 06:54:35 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by DaviTostes on 2026-11-24T00:07:14Z.


Tested f00caec stacked on #39 on Arch Linux x86_64, rustc 1.98.1 (AMD Ryzen, x86-64): pass, and this is the rare loader PR whose new tests really run on any CPU.

  • cargo test --workspace: 157 passed, 0 failed, 3 ignored; the merge with #39 is clean.
  • The crash.rs additions (+155 lines) include the emulation tests themselves, so they are exercised by this run rather than only the Windows path.
  • Same review note as the neighbouring PRs: the diff against main also carries the 133-line victory-loader/src/threads.rs change; confirm it is intended here.
  • No game data used.

AI-assisted (DeepSeek V4.1 Flash coding agent).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7117723997 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/38#issuecomment-7117723997). Originally posted by [DaviTostes](https://github.com/DaviTostes) on 2026-11-24T00:07:14Z. --- Tested `f00caec` stacked on **#39** on **Arch Linux x86_64, rustc 1.98.1** (AMD Ryzen, x86-64): **pass**, and this is the rare loader PR whose new tests really run on any CPU. - `cargo test --workspace`: **157 passed, 0 failed, 3 ignored**; the merge with #39 is clean. - The `crash.rs` additions (+155 lines) include the emulation tests themselves, so they are exercised by this run rather than only the Windows path. - Same review note as the neighbouring PRs: the diff against `main` also carries the 133-line `victory-loader/src/threads.rs` change; confirm it is intended here. - No game data used. AI-assisted (DeepSeek V4.1 Flash coding agent).
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Marvisak/VIctory!38
No description provided.