test(relinker): execute lane-split memory operands #27680
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/27680"
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 boykopovar/AnyPS5. Originally posted by nedara312-art on 2026-11-26T23:42:09Z.
What
Extend the lane-split execution tests to run memory sources through
[rdi+512]for every supported form except the register-only shift-immediate forms. Check the split results, source-memory preservation, other registers, and the red zone.Run VPMOVMSKB with every destination register from 0 through 15, including RDI. Update the shared vector execution harness to preserve and reload its RDI pointer without shifting RSP before snapshots, while retaining the existing destination-RSP capture path.
Tested
Windows 11, WinLibs GCC 16.2.0, relinker-only Release on current
main. No title or homebrew tested.cmake --build build-relinker --parallel 4: passed.ctest --test-dir build-relinker --output-on-failure -j4: 1165/1165 passed in 296.26 seconds.python tools/debt_fold.py --check: passed.python tools/check_conventions.py: passed.git diff --check upstream/main...HEAD: passed.python tools/pr_overlap.py --branch test/relinker-lanesplit-memory: reported #23747 and #24472 and could not automatically compare #23636. Manual comparison confirmed that #23636 adds lane-split forms and native comparisons, while #23747 and #24472 extend the shared Runner for reciprocal and FMA lowering. None implements this memory-operand coverage, and this PR does not build on them.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Summary by CodeRabbit
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-26T23:53:03Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the review found no verified defects in the changed code.
What I ran
Reviewed head
80f1021bff73ad815a0d73d64d301a6100808e89. No commands or tests were run in this review; the build and test results below were reported by the author.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The reported build, tests, and repository checks were not independently run. No title or homebrew was tested, per the PR description. All changed files listed in the manifest were read; no files were excluded.
To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by Plyxen on 2026-11-27T03:55:44Z.
Review: APPROVED
Checked head
80f1021bff. I applied it tomainad7582bad4together with #27668, #27649 and #27560, which touch different files. On Windows 11 with WinLibs GCC 15.2 (Release),tools/check_conventions.py --headon each head andtools/debt_fold.py --checkpassed, the build succeeded, and all 4,930 CPU tests passed (I left out the GPU tests). The ten relinker and codegen tests I ran for these four (amd64_only_converter,amd64_only_windows,red_zone_framer,red_zone_framer_execution,lane_split_lowering,relinker_conversionand four more) passed.lane_split_loweringnow runs the memory-source forms through[rdi+512], and VPMOVMSKB into every destination register from 0 to 15, RDI included. For that, the shared harness saves RDI on the stack and reloads it from there (push rdi,mov rdi, [rsp], andpop rdibefore the return). This is test-only, so there is nomain-source control to run.AI-assisted: yes (Claude Code)
Pull request closed