e2e: exercise SSE4a bitfields through the console title #434
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!434
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-434"
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?
@Prime1997 on GitHub · 2026-11-24 00:13 UTC · original
Prime1997:contrib/sse4a-guest-controls→main· +165 −0 · 2 files · 1 commits · openPart of #216. The reported Intel crash occurred on an SSE4a INSERTQ. These two guest checks execute immediate and register-controlled INSERTQ and EXTRQ through the existing XCL exception handler.
What is in it
tests/testtitle/src/main.rsruns 18 cases covering the reported encoding, high XMM registers, six-bit immediate masks, register controls and boundary bit positions. Checks compare the defined low destination bits, source and neighboring registers, and flags.crates/xcl/tests/e2e.rsrequires both guest PASS markers. This complements the decoder and saved-context work discussed in #209 and #216.Tested
d4998b1bf396dbbaf9c678d417c61ee0c9636dffwithcargo build --workspace --jobs 3andcargo test --workspace --no-fail-fast --jobs 3 -- --test-threads=4(debug). 676 passed, 0 failed, 41 ignored. 2 GPU tests reported a skip.gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64a6f5f7ain isolation on this GPU.cargo test -p xcl --test e2e test_title_runs_and_game_folder_is_untouched -- --nocapturepassed. Both guest checks printed PASS on the Intel host.Regression run
The test launches XCL's synthetic console title through its normal launcher. The changes are confined to the test title and end-to-end test.
Not tested
Native AMD SSE4a execution, other host CPUs, and retail gameplay. Optional sample-data tests ran without external sample files.
AI use
OpenAI Codex (GPT-6) helped write and adapt the tests, compare prior PRs, and run validation.
I use a temporary Discord to coordinate my work. Anyone helping test XCL or compare results is welcome. Test coordination on Discord
@ghost on GitHub · 2026-11-24 00:28 UTC · original
Native AMD SSE4a run, since Not tested lists it: head
d4998b1(already onmaina6f5f7a) passes on a Zen 3 CPU, where INSERTQ / EXTRQ execute in hardware instead of through XCL's emulation. So the expected values in the 18 cases match what the silicon does.Tested
x86_64-pc-windows-msvc; debug build.cargo test -p xcl --test e2e test_title_runs_and_game_folder_is_untouched -- --nocapture: passes, with[PASS] CPU: SSE4a INSERTQ and EXTRQ preserve defined bits, sources and flagsand[PASS] CPU: SSE4a register controls preserve bitfields, sources and flags..\scripts\test.ps1: passes, 0 failed; noSKIPPEDGPU tests.cargo test -p xcl --lib sse4a:insn::tests::sse4a_bit_fieldspasses.Not tested
AI use
@AC-Storm-YT on GitHub · 2026-11-24 00:35 UTC · original
Test run on an AMD CPU with native SSE4a – commit
d4998b1(this PR's head, as is), clean treeTested
stable-x86_64-pc-windows-msvc, debugcargo build --workspace: okcargo test --workspace -- --test-threads=4: 676 passed, 0 failed, 41 ignored. No SKIPPED tests.test_title_runs_and_game_folder_is_untouchedpasses, so the test title printed both new markers ([PASS] CPU: SSE4a INSERTQ and EXTRQ preserve defined bits, sources and flags,[PASS] CPU: SSE4a register controls preserve bitfields, sources and flags)On this CPU INSERTQ and EXTRQ run in hardware, so the run checks the 18 cases' expected results against real SSE4a rather than XCL's handler.
Not tested
mainRun and report: Claude Code (Claude Opus 5.5).
@alpz1000 on GitHub · 2026-11-24 00:59 UTC · original
Independent end-to-end check on an Intel Core i5-8400 at PR head
d4998b1bf396dbbaf9c678d417c61ee0c9636dff.Tested with Windows 11 Home 26200.9974, RTX 3060 12 GB (driver 610.88), Rust 1.100.0 x86_64-pc-windows-msvc, debug.
cargo build --locked --workspacesucceeded.cargo test --locked -p xcl --test e2e test_title_runs_and_game_folder_is_untouched -- --exact --nocapturepassed (1 passed, 0 failed, 0 ignored, 2 filtered out).Both guest PASS markers appeared: immediate INSERTQ/EXTRQ and register-controlled SSE4a. XCL logged that it emulated INSERTQ and EXTRQ on this CPU.
Not tested: the full workspace suite, native AMD SSE4a, or retail gameplay for this PR.
AI use: OpenAI Codex (GPT-6) ran the local build and test and summarized the output.
@13hourstilliland on GitHub · 2026-11-24 01:52 UTC · original
Independent Intel CPU (i5-12600K, SSE4a emulated) e2e and full workspace run on exact PR head
d4998b1.Tested
d4998b1bf396dbbaf9c678d417c61ee0c9636dff(PR #434 head), clean worktreestable-x86_64-pc-windows-gnu, not MSVC); DXC 1.9.2609.5 (01b62ad4) viaXCL_DXC_DIR; debug build; noXCL_SAMPLE_*setcargo test -p xcl --test e2e test_title_runs_and_game_folder_is_untouched -- --exact --nocapture(interactive desktop session)[PASS] CPU: SSE4a INSERTQ and EXTRQ preserve defined bits, sources and flagsand[PASS] CPU: SSE4a register controls preserve bitfields, sources and flags), and XCL logged that it emulated bothInsertqandExtrqon this CPU.cargo test --workspace --no-fail-fast -- --test-threads=4 --show-output(interactive desktop session)xcllib: 636 passed, 0 failed, 21 ignored;e2e: 3/0)SKIPPED(4, not coverage):no wave64(2):gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask,gpu::recomp::tests::gpu_wave32_program_in_wave64_hardwareno D3D12 debug layer(2):test_title_draws_with_a_root_signature_under_the_debug_layer,uploads_start_from_each_subresources_stateNot tested
scripts/smoke.ps1, D3D12 debug-layer testsAI use
gemini-4-neon: ran the commands and wrote this report from the logs; the human reviewed it.@DavidM1911 on GitHub · 2026-11-25 14:29 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
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.