feat(relinker): lower PDEP and PEXT under --to-rosetta and --to-avx #23781

Open
Urban225 wants to merge 1 commit from upstream-pr/23781 into main
Urban225 commented 2026-11-19 16:31:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Urban225 on 2026-11-19T16:31:11Z.


What

Lowers PDEP and PEXT under --to-rosetta and --to-avx, next to the existing BZHI/BEXTR lowering. Each becomes a stub that walks the mask one set bit per iteration (lowest bit through NEG and AND, cleared with XOR). RFLAGS is saved with PUSHFQ/POPFQ, since neither instruction writes it; scratch registers are saved in a 192-byte frame below the red zone. Register and memory masks, RSP as any operand, RIP-relative and stack-relative memory are handled as in the other BMI lowerings.

The debt fragment also changes the --to-avx entry that #23636 changes, so whichever merges second needs its fragment rebased. check_conventions.py reports one debt-length warning: the --to-rosetta entry was already over 1000 characters and only gains "PDEP and PEXT" in its list.

Tested

Ubuntu 24.04, GCC 13.3, x86-64 host with BMI2 (Intel Xeon), relinker-only build. No title or homebrew.

  • ctest: 1043/1043 pass.
  • New deposit_extract_lowering test: decoding of every register combination, matcher for both targets, execution of 32- and 64-bit forms for every destination with aliased and RSP operands, memory masks (base, SIB, RIP-relative, stack-relative across the spill frame), result, other registers, RFLAGS and red zone checked against the SDM definition, and against the hardware instruction on 200,000 random inputs.
  • to_rosetta Python test extended with PDEP and PEXT.
  • Not tested: under Rosetta, or on a CPU without BMI2.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt and the licence notice of code adapted from upstream (see AGENTS.md)
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5398872200 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/23781). Originally posted by [Urban225](https://github.com/Urban225) on 2026-11-19T16:31:11Z. --- ### What Lowers PDEP and PEXT under `--to-rosetta` and `--to-avx`, next to the existing BZHI/BEXTR lowering. Each becomes a stub that walks the mask one set bit per iteration (lowest bit through NEG and AND, cleared with XOR). RFLAGS is saved with PUSHFQ/POPFQ, since neither instruction writes it; scratch registers are saved in a 192-byte frame below the red zone. Register and memory masks, RSP as any operand, RIP-relative and stack-relative memory are handled as in the other BMI lowerings. The debt fragment also changes the `--to-avx` entry that #23636 changes, so whichever merges second needs its fragment rebased. `check_conventions.py` reports one `debt-length` warning: the `--to-rosetta` entry was already over 1000 characters and only gains "PDEP and PEXT" in its list. ### Tested Ubuntu 24.04, GCC 13.3, x86-64 host with BMI2 (Intel Xeon), relinker-only build. No title or homebrew. - `ctest`: 1043/1043 pass. - New `deposit_extract_lowering` test: decoding of every register combination, matcher for both targets, execution of 32- and 64-bit forms for every destination with aliased and RSP operands, memory masks (base, SIB, RIP-relative, stack-relative across the spill frame), result, other registers, RFLAGS and red zone checked against the SDM definition, and against the hardware instruction on 200,000 random inputs. - `to_rosetta` Python test extended with PDEP and PEXT. - Not tested: under Rosetta, or on a CPU without BMI2. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except technical debt and the licence notice of code adapted from upstream (see AGENTS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's technical debt file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
PrivacyOnion commented 2026-11-19 16:37:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-19T16:37:48Z.

Review: CHANGES_REQUESTED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against d5a9169056:

  • Conventions: tools/check_conventions.py failed.
    (pull request): error: [pr-template] Fill in the pull request template: unchecked: Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file
    (pull request): error: [pr-template] Fill in the pull request template: unchecked: No notes, investigation `.md` files or images added to the repository (attach them to this PR)
    (pull request): error: [pr-template] Fill in the pull request template: unchecked: New third-party code is a submodule built from source
    (pull request): error: [pr-template] Fill in the pull request template: unchecked: Generic behaviour, not specific to one title
    (pull request): error: [pr-template] Fill in the pull request template: unchecked: Depends on:
    (pull request): error: [pr-template] Fill in the pull request template: unchecked: Fixes:
    (pull request): error: [pr-template] Fill in the pull request template: unchecked: Unblocks:
    (pull request): error: [pr-template] Fill in the pull request template: unchecked: GPUs tested:
    (pull request): error: [pr-template] Fill in the pull request template: unchecked: AI-assisted:
    (pull request): error: [pr-template] Fill in the pull request template: answer AI-assisted with yes or no
    (pull request): error: [pr-template] Fill in the pull request template: fill Depends on with #N or none
    17 findings, 16 errors; GitHub shows at most 10 error annotations, the job summary lists all
    
  • Build: deposit_extract_lowering_tests built cleanly.
  • CTest (deposit_extract_lowering):
    1/1 Test #6022: deposit_extract_lowering .........   Passed   14.27 sec
    100% tests passed, 0 tests failed out of 1
    

Requesting changes for the points above.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5979239185 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/23781#pullrequestreview-5979239185). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-19T16:37:48Z. **Review:** CHANGES_REQUESTED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `d5a9169056`: - **Conventions**: `tools/check_conventions.py` failed. ``` (pull request): error: [pr-template] Fill in the pull request template: unchecked: Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file (pull request): error: [pr-template] Fill in the pull request template: unchecked: No notes, investigation `.md` files or images added to the repository (attach them to this PR) (pull request): error: [pr-template] Fill in the pull request template: unchecked: New third-party code is a submodule built from source (pull request): error: [pr-template] Fill in the pull request template: unchecked: Generic behaviour, not specific to one title (pull request): error: [pr-template] Fill in the pull request template: unchecked: Depends on: (pull request): error: [pr-template] Fill in the pull request template: unchecked: Fixes: (pull request): error: [pr-template] Fill in the pull request template: unchecked: Unblocks: (pull request): error: [pr-template] Fill in the pull request template: unchecked: GPUs tested: (pull request): error: [pr-template] Fill in the pull request template: unchecked: AI-assisted: (pull request): error: [pr-template] Fill in the pull request template: answer AI-assisted with yes or no (pull request): error: [pr-template] Fill in the pull request template: fill Depends on with #N or none 17 findings, 16 errors; GitHub shows at most 10 error annotations, the job summary lists all ``` - **Build**: `deposit_extract_lowering_tests` built cleanly. - **CTest** (`deposit_extract_lowering`): ``` 1/1 Test #6022: deposit_extract_lowering ......... Passed 14.27 sec 100% tests passed, 0 tests failed out of 1 ``` Requesting changes for the points above.
PrivacyOnion commented 2026-11-19 16:59:38 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-19T16:59:38Z.

Review: APPROVED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against d5a9169056:

  • Conventions: tools/check_conventions.py passed.
  • Build: deposit_extract_lowering_tests built cleanly.
  • CTest (deposit_extract_lowering):
    1/1 Test #6031: deposit_extract_lowering .........   Passed    6.46 sec
    100% tests passed, 0 tests failed out of 1
    
  • Negative control: with core/relinker/codegen/src/x86/Amd64OnlyInstructionMatcher.cpp, core/relinker/codegen/src/x86/DepositExtractLowering.cpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • Verified DepositExtractLowering.cpp:DecodeDepositExtract VEX prefix parsing (0xC4 map 2 / 0x0F 0x38, pp=2 for PEXT, pp=3 for PDEP, VEX.W, VEX.vvvv, ModR/M and SIB/displacement memory decoding).
    • Verified DepositExtractLowering.cpp:EmitDepositExtract scratch register allocation via UsedRegisters, stack frame allocation via SelectFrame, and red zone reservation.
    • Verified bitwise lowering logic for PDEP (_deposit: isolate lowest bit via neg/and, test source bit via shr/jc, accumulate into result via or, clear lowest bit via xor, loop until mask is 0) and PEXT (_extract: test bit via and/jz, accumulate power-of-2 into result via or, double power-of-2 via add, clear lowest bit via xor, loop).
    • Verified RFLAGS preservation across the stub using PUSHFQ/POPFQ and verified handling of RSP as destination or base operand.
    • Verified technical debt fragments in docs/dev/debt/changes/relinker-pdep-pext-lowering.md and USAGE.md documentation for both --to-rosetta and --to-avx flags.

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5979590392 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/23781#pullrequestreview-5979590392). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-19T16:59:38Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `d5a9169056`: - **Conventions**: `tools/check_conventions.py` passed. - **Build**: `deposit_extract_lowering_tests` built cleanly. - **CTest** (`deposit_extract_lowering`): ``` 1/1 Test #6031: deposit_extract_lowering ......... Passed 6.46 sec 100% tests passed, 0 tests failed out of 1 ``` - **Negative control**: with `core/relinker/codegen/src/x86/Amd64OnlyInstructionMatcher.cpp`, `core/relinker/codegen/src/x86/DepositExtractLowering.cpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - Verified DepositExtractLowering.cpp:DecodeDepositExtract VEX prefix parsing (0xC4 map 2 / 0x0F 0x38, pp=2 for PEXT, pp=3 for PDEP, VEX.W, VEX.vvvv, ModR/M and SIB/displacement memory decoding). - Verified DepositExtractLowering.cpp:EmitDepositExtract scratch register allocation via UsedRegisters, stack frame allocation via SelectFrame, and red zone reservation. - Verified bitwise lowering logic for PDEP (_deposit: isolate lowest bit via neg/and, test source bit via shr/jc, accumulate into result via or, clear lowest bit via xor, loop until mask is 0) and PEXT (_extract: test bit via and/jz, accumulate power-of-2 into result via or, double power-of-2 via add, clear lowest bit via xor, loop). - Verified RFLAGS preservation across the stub using PUSHFQ/POPFQ and verified handling of RSP as destination or base operand. - Verified technical debt fragments in docs/dev/debt/changes/relinker-pdep-pext-lowering.md and USAGE.md documentation for both --to-rosetta and --to-avx flags. Looks Good To Me
MarcZX10 commented 2026-11-19 17:24:10 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-19T17:24:10Z.

Review: APPROVED


Reviewed — looks good

Nothing blocks this change; I found no verified blocking defects in the files reviewed.

What I ran

Reviewed head d5a916905639c895c63494725c2f08fb32f9367f using the prepared diff and repo_read.py source reads. No commands or tests were run by me; test results below are author-reported.

Results

Check Result Note
Source review passed Reviewed all nine changed files
Automated tests not run Author reports 1043/1043 CTest pass
Rosetta and non-BMI2 behavior not run Author reports these were not tested

Findings

Blocking

None.

Non-blocking

None.

Not verified

I did not run the CTest suite or inspect execution on Rosetta or a CPU without BMI2. The author's reported test results were not independently verified. All nine files listed as reviewed in the manifest were read; no files were excluded by the manifest.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5979976273 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/23781#pullrequestreview-5979976273). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-19T17:24:10Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this change; I found no verified blocking defects in the files reviewed. ## What I ran Reviewed head `d5a916905639c895c63494725c2f08fb32f9367f` using the prepared diff and `repo_read.py` source reads. No commands or tests were run by me; test results below are author-reported. ## Results | Check | Result | Note | |---|---|---| | Source review | passed | Reviewed all nine changed files | | Automated tests | not run | Author reports 1043/1043 CTest pass | | Rosetta and non-BMI2 behavior | not run | Author reports these were not tested | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified I did not run the CTest suite or inspect execution on Rosetta or a CPU without BMI2. The author's reported test results were not independently verified. All nine files listed as reviewed in the manifest were read; no files were excluded by the manifest. ## To get this to a good state Nothing is required.
Jazeupoi commented 2026-11-20 08:17:42 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Jazeupoi on 2026-11-20T08:17:42Z.

Review: COMMENTED


Ran it under Rosetta on Apple Silicon, which the Tested section lists as not tested.

Setup: Apple M4, macOS 27.0.1, Apple clang (Command Line Tools), x86_64 Release build under Rosetta 2. Head d5a9169056 merged onto main e825fa1492 with #17425 and #11049 (needed for the macOS build); clean merge.

ctest --test-dir build-mac -R '^(deposit_extract_lowering|to_rosetta)$' -V
Test Result
deposit_extract_lowering passed 3 of 3 (deposit and extract lowering checks passed)
to_rosetta passed 3 of 3 (--to-rosetta integration tests passed)
  • The test binary is x86_64, so the stubs ran under Rosetta.
  • Rosetta on this machine executes native PDEP and PEXT: a small x86_64 program gives pdep(0xff, 0xf0f0) = 0xf0f0 and pext(0xabcd, 0xf0f0) = 0xac. So HostExecutes is true here, and the stub-against-host comparison ran as well.

Negative control: with the deposit loop's SHR of the source changed to SHL (RegisterBytes(0xD1, wide, 5, source) → 4), deposit_extract_lowering fails with PDEP 32 dst 0 source 6 mask 2 (source 1, mask value 1): register 0 is 0, wanted 1. With the change restored it passes.

Not run on a CPU without BMI2.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5989492061 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/23781#pullrequestreview-5989492061). Originally posted by [Jazeupoi](https://github.com/Jazeupoi) on 2026-11-20T08:17:42Z. **Review:** COMMENTED --- Ran it under Rosetta on Apple Silicon, which the Tested section lists as not tested. **Setup:** Apple M4, macOS 27.0.1, Apple clang (Command Line Tools), x86_64 Release build under Rosetta 2. Head `d5a9169056` merged onto `main` `e825fa1492` with #17425 and #11049 (needed for the macOS build); clean merge. ``` ctest --test-dir build-mac -R '^(deposit_extract_lowering|to_rosetta)$' -V ``` | Test | Result | |---|---| | `deposit_extract_lowering` | passed 3 of 3 (`deposit and extract lowering checks passed`) | | `to_rosetta` | passed 3 of 3 (`--to-rosetta integration tests passed`) | - The test binary is x86_64, so the stubs ran under Rosetta. - Rosetta on this machine executes native PDEP and PEXT: a small x86_64 program gives `pdep(0xff, 0xf0f0) = 0xf0f0` and `pext(0xabcd, 0xf0f0) = 0xac`. So `HostExecutes` is true here, and the stub-against-host comparison ran as well. **Negative control:** with the deposit loop's `SHR` of the source changed to `SHL` (`RegisterBytes(0xD1, wide, 5, source)` → `4`), `deposit_extract_lowering` fails with `PDEP 32 dst 0 source 6 mask 2 (source 1, mask value 1): register 0 is 0, wanted 1`. With the change restored it passes. Not run on a CPU without BMI2. AI-assisted: yes (Claude Code)
PrivacyOnion commented 2026-11-22 07:22:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-22T07:22:16Z.

Review: APPROVED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against dc65c95564:

  • Conventions: tools/check_conventions.py passed.
  • Build: deposit_extract_lowering_tests built cleanly.
  • CTest (deposit_extract_lowering):
    1/1 Test #6330: deposit_extract_lowering .........   Passed    2.38 sec
    100% tests passed, 0 tests failed out of 1
    
  • Negative control: with core/relinker/codegen/src/x86/Amd64OnlyInstructionMatcher.cpp, core/relinker/codegen/src/x86/DepositExtractLowering.cpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • Verified DepositExtractLowering.cpp:DecodeDepositExtract correctly decodes VEX map 2 (0x0F 0x38), opcode 0xF5, prefixes (pp=2 for PEXT, pp=3 for PDEP), VEX.L=0 requirement, VEX.W, VEX.vvvv (source), ModR/M reg (destination), r/m (mask register/memory), and REX/VEX prefix extensions.
    • Verified DepositExtractLowering.cpp:EmitDepositExtract bitwise lowering loops: PDEP isolates lowest mask bit, shifts source bit into carry, conditionally accumulates into result, and clears lowest bit; PEXT isolates lowest mask bit, tests source bit, conditionally accumulates power-of-2 into result, doubles bit weight, and clears lowest bit.
    • Verified frame allocation via SelectFrame, red zone safety, RSP preservation, and RFLAGS preservation across the stub using PUSHFQ/POPFQ in DepositExtractLowering.cpp.
    • Verified handling of RSP as destination register, including special handling where the result is temporarily stored in kStackResultSlot and restored into RSP after POPFQ.
    • Verified Amd64OnlyInstructionMatcher.cpp integrates DecodeDepositExtract and EmitDepositExtract into both _matchRosetta and _emitOutOfLine under _lowersBmi() for --to-rosetta and --to-avx.
    • Verified AGENTS.md compliance: no comments in new code, documentation and debt fragments added under docs/dev/debt/changes/ and docs/user/USAGE.md, and CMakeLists.txt correctly updated for core library and test targets.

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6011032530 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/23781#pullrequestreview-6011032530). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-22T07:22:16Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `dc65c95564`: - **Conventions**: `tools/check_conventions.py` passed. - **Build**: `deposit_extract_lowering_tests` built cleanly. - **CTest** (`deposit_extract_lowering`): ``` 1/1 Test #6330: deposit_extract_lowering ......... Passed 2.38 sec 100% tests passed, 0 tests failed out of 1 ``` - **Negative control**: with `core/relinker/codegen/src/x86/Amd64OnlyInstructionMatcher.cpp`, `core/relinker/codegen/src/x86/DepositExtractLowering.cpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - Verified DepositExtractLowering.cpp:DecodeDepositExtract correctly decodes VEX map 2 (0x0F 0x38), opcode 0xF5, prefixes (pp=2 for PEXT, pp=3 for PDEP), VEX.L=0 requirement, VEX.W, VEX.vvvv (source), ModR/M reg (destination), r/m (mask register/memory), and REX/VEX prefix extensions. - Verified DepositExtractLowering.cpp:EmitDepositExtract bitwise lowering loops: PDEP isolates lowest mask bit, shifts source bit into carry, conditionally accumulates into result, and clears lowest bit; PEXT isolates lowest mask bit, tests source bit, conditionally accumulates power-of-2 into result, doubles bit weight, and clears lowest bit. - Verified frame allocation via SelectFrame, red zone safety, RSP preservation, and RFLAGS preservation across the stub using PUSHFQ/POPFQ in DepositExtractLowering.cpp. - Verified handling of RSP as destination register, including special handling where the result is temporarily stored in kStackResultSlot and restored into RSP after POPFQ. - Verified Amd64OnlyInstructionMatcher.cpp integrates DecodeDepositExtract and EmitDepositExtract into both _matchRosetta and _emitOutOfLine under _lowersBmi() for --to-rosetta and --to-avx. - Verified AGENTS.md compliance: no comments in new code, documentation and debt fragments added under docs/dev/debt/changes/ and docs/user/USAGE.md, and CMakeLists.txt correctly updated for core library and test targets. Looks Good To Me
MarcZX10 commented 2026-11-22 07:35:26 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T07:35:26Z.

Review: APPROVED


Reviewed — looks good

Nothing blocks this change; the review supports merging based on the source inspected, while runtime checks and some changed-file context were not available.

What I ran

Reviewed head dc65c95564c003ba4c67c4a78009b2a835b6440d. Read the prepared description, commits, manifest and diff, plus the PDEP/PEXT lowering, its tests, matcher context and shared scalar-lowering helpers. No build or tests were run; author-reported test results were not independently verified.

Results

Check Result Note
Source review passed No concrete defect found in inspected code
Build and tests not run Only author-reported results available
Full changed-file review not run Excluded-file manifest unavailable

Findings

Blocking

None in the source inspected.

Non-blocking

None.

Not verified

The files.json excluded-file list and whether every manifest entry was marked reviewed could not be checked. The full texts of core/relinker/CMakeLists.txt, core/relinker/codegen/include/codegen/x86/DepositExtractLowering.hpp, core/relinker/relinker/tests/test_to_rosetta.py, docs/dev/debt/changes/relinker-pdep-pext-lowering.md, and docs/user/USAGE.md were not read. Build and runtime behavior were not tested; the reported ctest and hardware comparisons are author-reported.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6011069267 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/23781#pullrequestreview-6011069267). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-22T07:35:26Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this change; the review supports merging based on the source inspected, while runtime checks and some changed-file context were not available. ## What I ran Reviewed head `dc65c95564c003ba4c67c4a78009b2a835b6440d`. Read the prepared description, commits, manifest and diff, plus the PDEP/PEXT lowering, its tests, matcher context and shared scalar-lowering helpers. No build or tests were run; author-reported test results were not independently verified. ## Results | Check | Result | Note | |---|---|---| | Source review | passed | No concrete defect found in inspected code | | Build and tests | not run | Only author-reported results available | | Full changed-file review | not run | Excluded-file manifest unavailable | ## Findings ### Blocking None in the source inspected. ### Non-blocking None. ## Not verified The `files.json` excluded-file list and whether every manifest entry was marked reviewed could not be checked. The full texts of `core/relinker/CMakeLists.txt`, `core/relinker/codegen/include/codegen/x86/DepositExtractLowering.hpp`, `core/relinker/relinker/tests/test_to_rosetta.py`, `docs/dev/debt/changes/relinker-pdep-pext-lowering.md`, and `docs/user/USAGE.md` were not read. Build and runtime behavior were not tested; the reported `ctest` and hardware comparisons are author-reported. ## To get this to a good state Nothing is required.
ligmaSec commented 2026-12-03 11:53:58 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T11:53:58Z.

Review: COMMENTED


Built this head with ANYPS5_RELINKER_ONLY=ON and ran deposit_extract_lowering and amd64_only_converter on Linux x86-64. Both passed. The Rosetta execution path remains outside this run.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6169229185 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/23781#pullrequestreview-6169229185). Originally posted by [ligmaSec](https://github.com/ligmaSec) on 2026-12-03T11:53:58Z. **Review:** COMMENTED --- Built this head with `ANYPS5_RELINKER_ONLY=ON` and ran `deposit_extract_lowering` and `amd64_only_converter` on Linux x86-64. Both passed. The Rosetta execution path remains outside this run. AI-assisted: yes.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/23781:upstream-pr/23781'
git switch 'upstream-pr/23781'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/23781'
git switch 'upstream-pr/23781'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/23781'
git switch 'upstream-pr/23781'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/23781'
git switch 'main'
git merge --squash 'upstream-pr/23781'
git switch 'main'
git merge --ff-only 'upstream-pr/23781'
git switch 'main'
git merge 'upstream-pr/23781'
git push origin 'main'
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
boykopovar/AnyPS5!23781
No description provided.