feat(relinker): lower reciprocal approximations with measured Zen 2 tables #23747

Open
adiologydev wants to merge 5 commits from upstream-pr/23747 into main
adiologydev commented 2026-11-19 15:36:47 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adiologydev on 2026-11-19T15:36:47Z.


What

--to-intel replaced (V)RCPPS, (V)RSQRTPS, (V)RCPSS and (V)RSQRTSS with DIVPS/SQRTPS stubs. Those stubs return correctly rounded results, not the AMD approximation, they set MXCSR status flags, and they raise #XM when an exception is unmasked. The 256-bit and memory forms kept the native instruction, so they gave the host's (Intel's) approximation.

Now the stubs give the AMD result bit for bit:

  • Model, measured on a desktop Zen 2 (Ryzen 7 3700X, family 17h model 71h). A result depends only on the sign, the exponent and the top 12 mantissa bits. MXCSR (DAZ, FTZ, rounding) has no effect. There are three tables of 4096 entries each: RCP, RSQRT for odd exponents, and RSQRT for even exponents. Every entry has exponent 126 and 12 significant mantissa bits. The tables do not compress (they have no piecewise-linear or bipartite structure). The tables are in codegen/src/x86/SharedStubData.cpp. tools/reciprocal-tables/measure.cpp makes them again on any x86-64 host (see Tested).
  • Stub (ReciprocalLowering.cpp). It uses only integer operations: legacy SSE2/SSE4.1 encodings for legacy sites, and VEX.128 encodings for VEX sites, so AVX code pays no legacy-SSE penalty. VEX sites spill their scratch registers as full YMM registers. The 256-bit forms also use vextractf128/vinsertf128. It makes the table index, looks up each lane with pextrd/movzx/pinsrd, rebuilds the exponent, and selects the special cases with masks: zero/denormal, overflow, NaN, negative input and ±inf. RFLAGS and MXCSR do not change, and the stub cannot raise #XM, which is the same as the native instructions. Legacy SSE forms keep the destination's upper YMM bits. Memory operands are loaded without an alignment check, so a misaligned m128 is read as in AMD's misaligned SSE mode; outside that mode, native rcpps/rsqrtps raise #GP instead (checked on the Zen 2). VEX forms clear the upper bits.
  • Forms. Legacy SSE, VEX.128 and VEX.256 forms, in register and memory form (DecodeReciprocal now decodes them). FS- and GS-prefixed memory forms stay native, because the guest TLS and GS handling owns them (the macOS writer rejects a trampoline over a guest GS or TLS access).
  • Shared stub data. StubRelocation::SharedData and an optional sharedDataAddress for ApplyStubRelocations. LinuxElfPatcher, LinuxGuestModuleWriter and WindowsTrampolineBuilder (also used for macOS) write the tables and constants (24.8 KB) one time, before the first stub, and only when a stub refers to them.
  • Cost. A stub is about 400 bytes for a legacy form, 500 for VEX.128 and 950 for VEX.256 (the old stub was about 40 bytes). See the timing table under Tested.
  • Debt. The fragment changes the relinker.md reciprocal entry. The PS5's own tables are not measured: Closes when: measured on a PS5.

Tested

Debian Linux x86-64, AMD Ryzen 7 3700X (Zen 2), GCC 14.2, CMake 3.31, relinker-only build (-DANYPS5_RELINKER_ONLY=ON -DBUILD_TESTING=ON). I did not test on a title or on homebrew. PPSA21564 has not been run again.

  • Tables, and how to make them again. c++ -std=c++20 -O2 tools/reciprocal-tables/measure.cpp -o measure, then ./measure --check core/relinker/codegen/src/x86/SharedStubData.cpp --verify.

    • The tool prints the CPU and measures rcpss/rsqrtss at 0x3F800000 | i << 11 (RCP and RSQRT for odd exponents) and at 0x40000000 | i << 11 (RSQRT for even exponents), for i < 4096. It refuses a CPU whose entries do not have exponent 126 and 12 mantissa bits.
    • --check compares the measured tables with the file. --verify tests the table model against the native instruction for all 2^32 inputs under MXCSR 0x1F80, 0x9FC0 and 0x7F80.
    • Without options, it prints the initializer.
    • On this machine: AuthenticAMD family 0x17 model 0x71 stepping 0, AMD Ryzen 7 3700X. 12288 entries, 0 differ. 0 mismatches for every MXCSR value and both instructions.
    • A changed entry is reported. Under QEMU's Skylake model the tool refuses the CPU.
  • Exhaustive check against native instructions on that Zen 2. For each of the 2^32 inputs, it compares the output of the generated stub with native rcpps/rsqrtps. The harness was a throwaway, not committed: it builds the stubs with MakeAmd64OnlyInstructionMatcher, places them with SharedStubData(), and runs them in OpenMP threads.

    Instruction Legacy packed stub VEX.128 stub VEX.256 stub Old DIV / SQRT+DIV stub
    RCPPS 0 0 0 4272519054 mismatches (99.5%)
    RSQRTPS 0 0 0 2146596043 mismatches (50.0%; NaN payloads ignored)
  • Paired timing on the same machine (Zen 2 VM, pinned to one core, median of 5 runs, 20M calls each; the values include call/ret and loop overhead). It is the same benchmark built against relinker_core from main and from this branch. Legacy sites run with clean upper YMM state, and VEX sites with dirty state, as in AVX code. On main the VEX.256 forms were not lowered.

    Site Native main stub This PR Throughput change
    RCPPS 6.6 ns 7.4 ns (latency 2.5) 15.7 ns (latency 16.5) 2.1× slower
    RSQRTPS 6.6–6.9 ns 7.4 ns (latency 5.9) 17.1 ns (latency 17.6) 2.3× slower
    RCPSS 6.6–6.9 ns 7.4 ns (latency 3.0) 15.9 ns (latency 17.1) 2.2× slower
    VRCPPS xmm 1.5 ns 135.9 ns (latency 127.5) 8.6 ns (latency 16.2) 15.8× faster
    VRCPPS ymm 1.5 ns native 1.5 ns 15.3 ns (latency 18.9) new stub
    VRSQRTPS ymm 1.5 ns native 1.5 ns 17.9 ns (latency 20.5) new stub

    The main VEX.128 stub is slow because it ran legacy SSE while the upper YMM bits were dirty. On this host that costs about 60 ns per call: native legacy rcpps takes 63.7 ns after a VEX write and 1.4 ns after vzeroupper. I did not use tools/trace_digest.py because I have no title to trace. These are microbenchmarks, not a speed claim.

  • A table model against native RCPSS/RSQRTSS, all 2^32 inputs: 0 mismatches under MXCSR 0x1F80, 0x9FC0 and 0x7F80. The packed and YMM lanes are equal to the scalar results.

  • New reciprocal_lowering test, which runs on any x86-64 host, Intel CI included.

    • It runs every form: legacy, VEX.128, VEX.256 and scalar, high registers, dst == src, VEX scalar with a different vvvv, m32/m128/m256, and RSP-relative memory.
    • It compares the results with 42 golden values measured on Zen 2 and with an FNV hash of the Zen 2 results over 77866 inputs.
    • It checks that RFLAGS (two patterns) do not change, that MXCSR does not change with all exceptions unmasked, and that RAX/RDX, all other YMM registers (upper halves included), the red zone and the memory operand do not change.
    • It checks the two RIP-relative relocations of a 256-bit memory operand.
    • A wrong hash or a wrong golden value makes it fail (I checked this locally).
  • End-to-end. to_intel_linux_stubs (main executable) and guest_intel_trampolines_execution (guest module) run the real relinker with --to-intel. They check that the RCPPS/RSQRTPS site became a jump, and they call the converted code against Zen 2 values. windows_trampoline_builder checks that the shared block starts .amdstub, that its relocation resolves, and that the block is absent when no stub uses it.

  • VEX.L and VEX.W on scalar forms. The SDM encodes VRCPSS and VRSQRTSS as VEX.LIG.F3.0F.WIG (rcpss, rsqrtss), and vvvv is the xmm2 source. On the Zen 2, C5 E6 53 D5 (L=1) and C4 E1 E6 53 D5 (L=1, W=1) give the same results as C5 E2 53 D5. QEMU's Skylake model (Ubuntu 24.04 qemu-user) raises SIGILL for them, so QEMU is stricter than the hardware here. The decoder accepts these forms, as main's VRSQRTSS ignores VEX.L test already expects. reciprocal_lowering runs them against the Zen 2 golden values.

  • Misaligned m128. On the Zen 2, native legacy rcpps/rsqrtps raise #GP on a misaligned m128 with the default MXCSR, and read it with MXCSR bit 17 (misaligned SSE mode, MXCSR_MASK 0x0002FFFF) set; movdqa faults in both modes. The stub now uses movdqu. reciprocal_lowering runs [rax+4] and [rax+12] operands: the previous stub crashes on them (exit 139), and this one passes.

  • Build procedure. to_intel_linux_stubs and guest_intel_trampolines_execution run $<TARGET_FILE:relinker>. Since 6bf997882a, their test executables depend on relinker, so building them also rebuilds it. In ubuntu:24.04 / GCC 13.3, with relinker built at main and then only the 5 review targets built at the PR head, d4c0520af3 fails those 2 tests and 6bf997882a passes all 6. The Python test guest_intel_trampolines still runs whichever relinker exists, as all Python relinker tests do on main; it has no reciprocal code.

  • Host independence. Built in Docker ubuntu:24.04 with GCC 13.3.0, Ninja and Release, the 6 tests from the review pass.

    • Under qemu-x86_64 -cpu Skylake-Client, reciprocal_lowering, windows_trampoline_builder, to_intel_linux_stubs and guest_intel_trampolines_execution pass. There, native rsqrtss(1.0) is 0x3F800000, not the Zen 2 value 0x3F7FF800.
    • amd64_only_converter_tests crashes under QEMU on main as well.
    • The two end-to-end tests fail only when they run against a relinker built from main, with the message about the desktop Zen 2 results.
  • Full relinker ctest (rebased on main at d8316aa43b): 1057 tests. The only failures are the 7 shader_cache_runtime_sources* tests, which also fail on main on this machine.

  • Repository checks. python3 tools/check_conventions.py --base origin/main: all checks passed. python3 tools/debt_fold.py --check: passed.

  • python3 tools/pr_overlap.py --branch: no PR implements the same thing.

    • Text overlaps: #16371, #16372 and #18293 each add an APS5_RELINK_STUB_MAP print next to the ApplyStubRelocations call in WindowsTrampolineBuilder.cpp. Several PRs edit the source lists in core/relinker/CMakeLists.txt.
    • #11525 only has a context line near converterReciprocal().

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:5397956464 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/23747). Originally posted by [adiologydev](https://github.com/adiologydev) on 2026-11-19T15:36:47Z. --- ### What `--to-intel` replaced (V)RCPPS, (V)RSQRTPS, (V)RCPSS and (V)RSQRTSS with `DIVPS`/`SQRTPS` stubs. Those stubs return correctly rounded results, not the AMD approximation, they set MXCSR status flags, and they raise #XM when an exception is unmasked. The 256-bit and memory forms kept the native instruction, so they gave the host's (Intel's) approximation. Now the stubs give the AMD result bit for bit: - **Model, measured on a desktop Zen 2 (Ryzen 7 3700X, family 17h model 71h).** A result depends only on the sign, the exponent and the top 12 mantissa bits. MXCSR (DAZ, FTZ, rounding) has no effect. There are three tables of 4096 entries each: RCP, RSQRT for odd exponents, and RSQRT for even exponents. Every entry has exponent 126 and 12 significant mantissa bits. The tables do not compress (they have no piecewise-linear or bipartite structure). The tables are in `codegen/src/x86/SharedStubData.cpp`. `tools/reciprocal-tables/measure.cpp` makes them again on any x86-64 host (see Tested). - **Stub** (`ReciprocalLowering.cpp`). It uses only integer operations: legacy SSE2/SSE4.1 encodings for legacy sites, and VEX.128 encodings for VEX sites, so AVX code pays no legacy-SSE penalty. VEX sites spill their scratch registers as full YMM registers. The 256-bit forms also use `vextractf128`/`vinsertf128`. It makes the table index, looks up each lane with `pextrd`/`movzx`/`pinsrd`, rebuilds the exponent, and selects the special cases with masks: zero/denormal, overflow, NaN, negative input and ±inf. RFLAGS and MXCSR do not change, and the stub cannot raise #XM, which is the same as the native instructions. Legacy SSE forms keep the destination's upper YMM bits. Memory operands are loaded without an alignment check, so a misaligned `m128` is read as in AMD's misaligned SSE mode; outside that mode, native `rcpps`/`rsqrtps` raise #GP instead (checked on the Zen 2). VEX forms clear the upper bits. - **Forms.** Legacy SSE, VEX.128 and VEX.256 forms, in register and memory form (`DecodeReciprocal` now decodes them). FS- and GS-prefixed memory forms stay native, because the guest TLS and GS handling owns them (the macOS writer rejects a trampoline over a guest GS or TLS access). - **Shared stub data.** `StubRelocation::SharedData` and an optional `sharedDataAddress` for `ApplyStubRelocations`. `LinuxElfPatcher`, `LinuxGuestModuleWriter` and `WindowsTrampolineBuilder` (also used for macOS) write the tables and constants (24.8 KB) one time, before the first stub, and only when a stub refers to them. - **Cost.** A stub is about 400 bytes for a legacy form, 500 for VEX.128 and 950 for VEX.256 (the old stub was about 40 bytes). See the timing table under Tested. - **Debt.** The fragment changes the `relinker.md` reciprocal entry. The PS5's own tables are not measured: `Closes when: measured on a PS5`. ### Tested Debian Linux x86-64, AMD Ryzen 7 3700X (Zen 2), GCC 14.2, CMake 3.31, relinker-only build (`-DANYPS5_RELINKER_ONLY=ON -DBUILD_TESTING=ON`). I did not test on a title or on homebrew. PPSA21564 has not been run again. - **Tables, and how to make them again.** `c++ -std=c++20 -O2 tools/reciprocal-tables/measure.cpp -o measure`, then `./measure --check core/relinker/codegen/src/x86/SharedStubData.cpp --verify`. - The tool prints the CPU and measures `rcpss`/`rsqrtss` at `0x3F800000 | i << 11` (RCP and RSQRT for odd exponents) and at `0x40000000 | i << 11` (RSQRT for even exponents), for `i < 4096`. It refuses a CPU whose entries do not have exponent 126 and 12 mantissa bits. - `--check` compares the measured tables with the file. `--verify` tests the table model against the native instruction for all 2^32 inputs under MXCSR `0x1F80`, `0x9FC0` and `0x7F80`. - Without options, it prints the initializer. - On this machine: `AuthenticAMD family 0x17 model 0x71 stepping 0, AMD Ryzen 7 3700X`. 12288 entries, 0 differ. 0 mismatches for every MXCSR value and both instructions. - A changed entry is reported. Under QEMU's Skylake model the tool refuses the CPU. - **Exhaustive check against native instructions on that Zen 2.** For each of the 2^32 inputs, it compares the output of the generated stub with native `rcpps`/`rsqrtps`. The harness was a throwaway, not committed: it builds the stubs with `MakeAmd64OnlyInstructionMatcher`, places them with `SharedStubData()`, and runs them in OpenMP threads. | Instruction | Legacy packed stub | VEX.128 stub | VEX.256 stub | Old DIV / SQRT+DIV stub | |---|---|---|---|---| | RCPPS | 0 | 0 | 0 | 4272519054 mismatches (99.5%) | | RSQRTPS | 0 | 0 | 0 | 2146596043 mismatches (50.0%; NaN payloads ignored) | - **Paired timing on the same machine** (Zen 2 VM, pinned to one core, median of 5 runs, 20M calls each; the values include call/ret and loop overhead). It is the same benchmark built against `relinker_core` from `main` and from this branch. Legacy sites run with clean upper YMM state, and VEX sites with dirty state, as in AVX code. On `main` the VEX.256 forms were not lowered. | Site | Native | `main` stub | This PR | Throughput change | |---|---|---|---|---| | RCPPS | 6.6 ns | 7.4 ns (latency 2.5) | 15.7 ns (latency 16.5) | 2.1× slower | | RSQRTPS | 6.6–6.9 ns | 7.4 ns (latency 5.9) | 17.1 ns (latency 17.6) | 2.3× slower | | RCPSS | 6.6–6.9 ns | 7.4 ns (latency 3.0) | 15.9 ns (latency 17.1) | 2.2× slower | | VRCPPS xmm | 1.5 ns | 135.9 ns (latency 127.5) | 8.6 ns (latency 16.2) | 15.8× faster | | VRCPPS ymm | 1.5 ns | native 1.5 ns | 15.3 ns (latency 18.9) | new stub | | VRSQRTPS ymm | 1.5 ns | native 1.5 ns | 17.9 ns (latency 20.5) | new stub | The `main` VEX.128 stub is slow because it ran legacy SSE while the upper YMM bits were dirty. On this host that costs about 60 ns per call: native legacy `rcpps` takes 63.7 ns after a VEX write and 1.4 ns after `vzeroupper`. I did not use `tools/trace_digest.py` because I have no title to trace. These are microbenchmarks, not a speed claim. - **A table model against native `RCPSS`/`RSQRTSS`**, all 2^32 inputs: 0 mismatches under MXCSR `0x1F80`, `0x9FC0` and `0x7F80`. The packed and YMM lanes are equal to the scalar results. - **New `reciprocal_lowering` test**, which runs on any x86-64 host, Intel CI included. - It runs every form: legacy, VEX.128, VEX.256 and scalar, high registers, dst == src, VEX scalar with a different `vvvv`, `m32`/`m128`/`m256`, and RSP-relative memory. - It compares the results with 42 golden values measured on Zen 2 and with an FNV hash of the Zen 2 results over 77866 inputs. - It checks that RFLAGS (two patterns) do not change, that MXCSR does not change with all exceptions unmasked, and that RAX/RDX, all other YMM registers (upper halves included), the red zone and the memory operand do not change. - It checks the two RIP-relative relocations of a 256-bit memory operand. - A wrong hash or a wrong golden value makes it fail (I checked this locally). - **End-to-end.** `to_intel_linux_stubs` (main executable) and `guest_intel_trampolines_execution` (guest module) run the real relinker with `--to-intel`. They check that the RCPPS/RSQRTPS site became a jump, and they call the converted code against Zen 2 values. `windows_trampoline_builder` checks that the shared block starts `.amdstub`, that its relocation resolves, and that the block is absent when no stub uses it. - **VEX.L and VEX.W on scalar forms.** The SDM encodes `VRCPSS` and `VRSQRTSS` as `VEX.LIG.F3.0F.WIG` ([rcpss](https://www.felixcloutier.com/x86/rcpss), [rsqrtss](https://www.felixcloutier.com/x86/rsqrtss)), and `vvvv` is the `xmm2` source. On the Zen 2, `C5 E6 53 D5` (L=1) and `C4 E1 E6 53 D5` (L=1, W=1) give the same results as `C5 E2 53 D5`. QEMU's Skylake model (Ubuntu 24.04 `qemu-user`) raises SIGILL for them, so QEMU is stricter than the hardware here. The decoder accepts these forms, as `main`'s `VRSQRTSS ignores VEX.L` test already expects. `reciprocal_lowering` runs them against the Zen 2 golden values. - **Misaligned `m128`.** On the Zen 2, native legacy `rcpps`/`rsqrtps` raise #GP on a misaligned `m128` with the default MXCSR, and read it with MXCSR bit 17 (misaligned SSE mode, `MXCSR_MASK 0x0002FFFF`) set; `movdqa` faults in both modes. The stub now uses `movdqu`. `reciprocal_lowering` runs `[rax+4]` and `[rax+12]` operands: the previous stub crashes on them (exit 139), and this one passes. - **Build procedure.** `to_intel_linux_stubs` and `guest_intel_trampolines_execution` run `$<TARGET_FILE:relinker>`. Since `6bf997882a`, their test executables depend on `relinker`, so building them also rebuilds it. In `ubuntu:24.04` / GCC 13.3, with `relinker` built at `main` and then only the 5 review targets built at the PR head, `d4c0520af3` fails those 2 tests and `6bf997882a` passes all 6. The Python test `guest_intel_trampolines` still runs whichever `relinker` exists, as all Python relinker tests do on `main`; it has no reciprocal code. - **Host independence.** Built in Docker `ubuntu:24.04` with GCC 13.3.0, Ninja and Release, the 6 tests from the review pass. - Under `qemu-x86_64 -cpu Skylake-Client`, `reciprocal_lowering`, `windows_trampoline_builder`, `to_intel_linux_stubs` and `guest_intel_trampolines_execution` pass. There, native `rsqrtss(1.0)` is `0x3F800000`, not the Zen 2 value `0x3F7FF800`. - `amd64_only_converter_tests` crashes under QEMU on `main` as well. - The two end-to-end tests fail only when they run against a relinker built from `main`, with the message about the desktop Zen 2 results. - **Full relinker `ctest`** (rebased on `main` at `d8316aa43b`): 1057 tests. The only failures are the 7 `shader_cache_runtime_sources*` tests, which also fail on `main` on this machine. - **Repository checks.** `python3 tools/check_conventions.py --base origin/main`: all checks passed. `python3 tools/debt_fold.py --check`: passed. - **`python3 tools/pr_overlap.py --branch`:** no PR implements the same thing. - Text overlaps: #16371, #16372 and #18293 each add an `APS5_RELINK_STUB_MAP` print next to the `ApplyStubRelocations` call in `WindowsTrampolineBuilder.cpp`. Several PRs edit the source lists in `core/relinker/CMakeLists.txt`. - #11525 only has a context line near `converterReciprocal()`. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [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](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) 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](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/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 15:40:46 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-19T15:40:46Z.

Review: CHANGES_REQUESTED


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

  • Conventions: tools/check_conventions.py passed.
  • Build: amd64_only_converter_tests, guest_intel_trampolines_tests, reciprocal_lowering_tests, to_intel_linux_stubs_tests, windows_trampoline_builder_tests built cleanly.
  • CTest (reciprocal_lowering, amd64_only_converter, guest_intel_trampolines, windows_trampoline_builder, to_intel_linux_stubs, guest_intel_trampolines_execution):
    1/6 Test #6027: reciprocal_lowering .................   Passed    0.07 sec
    2/6 Test #6057: amd64_only_converter ................   Passed    0.10 sec
    3/6 Test #6262: windows_trampoline_builder ..........   Passed    0.01 sec
    4/6 Test #6267: to_intel_linux_stubs ................***Failed    0.23 sec
    5/6 Test #6270: guest_intel_trampolines_execution ...***Failed    0.02 sec
    6/6 Test #6161: guest_intel_trampolines .............   Passed    0.35 sec
    67% tests passed, 2 tests failed out of 6
    
    The following tests FAILED:
    

Requesting changes for the points above.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5978186678 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/23747#pullrequestreview-5978186678). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-19T15:40:46Z. **Review:** CHANGES_REQUESTED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `c59121cfd9`: - **Conventions**: `tools/check_conventions.py` passed. - **Build**: `amd64_only_converter_tests`, `guest_intel_trampolines_tests`, `reciprocal_lowering_tests`, `to_intel_linux_stubs_tests`, `windows_trampoline_builder_tests` built cleanly. - **CTest** (`reciprocal_lowering`, `amd64_only_converter`, `guest_intel_trampolines`, `windows_trampoline_builder`, `to_intel_linux_stubs`, `guest_intel_trampolines_execution`): ``` 1/6 Test #6027: reciprocal_lowering ................. Passed 0.07 sec 2/6 Test #6057: amd64_only_converter ................ Passed 0.10 sec 3/6 Test #6262: windows_trampoline_builder .......... Passed 0.01 sec 4/6 Test #6267: to_intel_linux_stubs ................***Failed 0.23 sec 5/6 Test #6270: guest_intel_trampolines_execution ...***Failed 0.02 sec 6/6 Test #6161: guest_intel_trampolines ............. Passed 0.35 sec 67% tests passed, 2 tests failed out of 6 ``` ``` The following tests FAILED: ``` Requesting changes for the points above.
MarcZX10 commented 2026-11-19 16:57:50 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-19T16:57:50Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

Changes are required before merge: prevent scalar VEX encodings from being decoded as packed operations when their mandatory vvvv/width bits are invalid.

What I ran

Reviewed head c59121cfd93dc7eb3eff4e8fddb0018fe0417802. I read the prepared description, commit summary, manifest, diff, and targeted changed code and tests through repo_read.py. No build or test commands were run.

Results

Check Result Note
Source review failed Invalid VEX encodings can be accepted
Build and tests not run No commands run

Negative control

Not run; no test was executed with an intentionally invalid VEX encoding.

Findings

Blocking

  • core/relinker/codegen/src/x86/ReciprocalOperands.cpp:68: vexScalar is inferred from pp == 2 without checking that L=0 or that the scalar instruction's vvvv bits are valid. Thus an invalid VEX encoding of RCPSS/RSQRTSS can be accepted and lowered as a real instruction. For example, a VEX scalar encoding with L=1 is reserved, but the decoder passes it through because the packed-only validation is skipped whenever pp == 2. Reject invalid scalar VEX L and vvvv fields before returning operands, and add decoder coverage for these malformed encodings.

Non-blocking

None.

Not verified

No build or test suite was run, so the author-reported checks were not independently confirmed. The full changed-file set was not read; targeted reads covered ReciprocalOperands.cpp, ReciprocalLowering.cpp, StubBodyBuilder.cpp, SharedStubData.cpp tail, and ReciprocalLoweringTests.cpp; other changed files and remaining diff sections were not inspected. files.json was not available as a review document; the reader's file listing showed all changed files included.

To get this to a good state

Reject reserved scalar VEX encodings and add regression tests for the invalid L and vvvv cases. Then run the relevant decoder and reciprocal lowering tests on the new head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5979563088 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/23747#pullrequestreview-5979563088). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-19T16:57:50Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested Changes are required before merge: prevent scalar VEX encodings from being decoded as packed operations when their mandatory `vvvv`/width bits are invalid. ## What I ran Reviewed head `c59121cfd93dc7eb3eff4e8fddb0018fe0417802`. I read the prepared description, commit summary, manifest, diff, and targeted changed code and tests through `repo_read.py`. No build or test commands were run. ## Results | Check | Result | Note | |---|---|---| | Source review | failed | Invalid VEX encodings can be accepted | | Build and tests | not run | No commands run | ## Negative control Not run; no test was executed with an intentionally invalid VEX encoding. ## Findings ### Blocking - `core/relinker/codegen/src/x86/ReciprocalOperands.cpp:68`: `vexScalar` is inferred from `pp == 2` without checking that `L=0` or that the scalar instruction's `vvvv` bits are valid. Thus an invalid VEX encoding of `RCPSS`/`RSQRTSS` can be accepted and lowered as a real instruction. For example, a VEX scalar encoding with `L=1` is reserved, but the decoder passes it through because the packed-only validation is skipped whenever `pp == 2`. Reject invalid scalar VEX `L` and `vvvv` fields before returning operands, and add decoder coverage for these malformed encodings. ### Non-blocking None. ## Not verified No build or test suite was run, so the author-reported checks were not independently confirmed. The full changed-file set was not read; targeted reads covered `ReciprocalOperands.cpp`, `ReciprocalLowering.cpp`, `StubBodyBuilder.cpp`, `SharedStubData.cpp` tail, and `ReciprocalLoweringTests.cpp`; other changed files and remaining diff sections were not inspected. `files.json` was not available as a review document; the reader's file listing showed all changed files included. ## To get this to a good state Reject reserved scalar VEX encodings and add regression tests for the invalid `L` and `vvvv` cases. Then run the relevant decoder and reciprocal lowering tests on the new head.
PrivacyOnion commented 2026-11-19 21:25:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-19T21:25:04Z.

Review: CHANGES_REQUESTED


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

  • Conventions: tools/check_conventions.py passed.
  • Build: amd64_only_converter_tests, guest_intel_trampolines_tests, reciprocal_lowering_tests, to_intel_linux_stubs_tests, windows_trampoline_builder_tests built cleanly.
  • CTest (reciprocal_lowering, amd64_only_converter, guest_intel_trampolines, windows_trampoline_builder, to_intel_linux_stubs, guest_intel_trampolines_execution):
    1/6 Test #6097: amd64_only_converter ................   Passed    0.10 sec
    2/6 Test #6067: reciprocal_lowering .................   Passed    0.13 sec
    3/6 Test #6302: windows_trampoline_builder ..........   Passed    0.01 sec
    4/6 Test #6307: to_intel_linux_stubs ................***Failed    0.01 sec
    5/6 Test #6310: guest_intel_trampolines_execution ...***Failed    0.01 sec
    6/6 Test #6201: guest_intel_trampolines .............***Failed    0.45 sec
    50% tests passed, 3 tests failed out of 6
    
    The following tests FAILED:
    

Requesting changes for the points above.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5983650444 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/23747#pullrequestreview-5983650444). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-19T21:25:04Z. **Review:** CHANGES_REQUESTED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `99b3436032`: - **Conventions**: `tools/check_conventions.py` passed. - **Build**: `amd64_only_converter_tests`, `guest_intel_trampolines_tests`, `reciprocal_lowering_tests`, `to_intel_linux_stubs_tests`, `windows_trampoline_builder_tests` built cleanly. - **CTest** (`reciprocal_lowering`, `amd64_only_converter`, `guest_intel_trampolines`, `windows_trampoline_builder`, `to_intel_linux_stubs`, `guest_intel_trampolines_execution`): ``` 1/6 Test #6097: amd64_only_converter ................ Passed 0.10 sec 2/6 Test #6067: reciprocal_lowering ................. Passed 0.13 sec 3/6 Test #6302: windows_trampoline_builder .......... Passed 0.01 sec 4/6 Test #6307: to_intel_linux_stubs ................***Failed 0.01 sec 5/6 Test #6310: guest_intel_trampolines_execution ...***Failed 0.01 sec 6/6 Test #6201: guest_intel_trampolines .............***Failed 0.45 sec 50% tests passed, 3 tests failed out of 6 ``` ``` The following tests FAILED: ``` Requesting changes for the points above.
MarcZX10 commented 2026-11-19 21:29:34 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-19T21:29:34Z.

Review: DISMISSED


Reviewed — changes requested

Changes are required before merge: use an unaligned load for legacy packed memory operands, because the stub currently adds an alignment fault that the native instruction does not require.

What I ran

Reviewed head 99b3436032c76cee5374e1a58ab54fd68705a336 using the prepared diff and repository reader. No commands or tests were run.

Results

Check Result Note
Code review failed Legacy packed memory load adds an alignment restriction
Tests not run No checks run during this review

Findings

Blocking

  • core/relinker/codegen/src/x86/ReciprocalLowering.cpp:419 loads a legacy packed memory operand with MOVDQA, which faults on a misaligned address. RCPPS/RSQRTPS memory operands do not require 16-byte alignment, so these lowered instructions can fault where the original instruction succeeds. Use an unaligned load for this path and add a misaligned-memory case to the lowering tests.

Non-blocking

None.

Not verified

Read the description, commits, manifest, prepared diff, and targeted code in ReciprocalLowering.cpp, ReciprocalOperands.cpp, StubBodyBuilder.cpp, SharedStubData.cpp, LinuxElfPatcher.cpp, and WindowsTrampolineBuilder.cpp. The changed files were listed as included in the review bundle; the remaining changed source and test files were not read. No programmatic checks, builds, or tests were run. The author-reported test results were not independently verified.

To get this to a good state

Replace the legacy packed MOVDQA memory load with an unaligned load and add coverage for misaligned m128 input; rerun the reciprocal lowering and relevant end-to-end tests on the updated head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5983709070 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/23747#pullrequestreview-5983709070). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-19T21:29:34Z. **Review:** DISMISSED --- # Reviewed — changes requested Changes are required before merge: use an unaligned load for legacy packed memory operands, because the stub currently adds an alignment fault that the native instruction does not require. ## What I ran Reviewed head `99b3436032c76cee5374e1a58ab54fd68705a336` using the prepared diff and repository reader. No commands or tests were run. ## Results | Check | Result | Note | |---|---|---| | Code review | failed | Legacy packed memory load adds an alignment restriction | | Tests | not run | No checks run during this review | ## Findings ### Blocking - `core/relinker/codegen/src/x86/ReciprocalLowering.cpp:419` loads a legacy packed memory operand with `MOVDQA`, which faults on a misaligned address. `RCPPS`/`RSQRTPS` memory operands do not require 16-byte alignment, so these lowered instructions can fault where the original instruction succeeds. Use an unaligned load for this path and add a misaligned-memory case to the lowering tests. ### Non-blocking None. ## Not verified Read the description, commits, manifest, prepared diff, and targeted code in `ReciprocalLowering.cpp`, `ReciprocalOperands.cpp`, `StubBodyBuilder.cpp`, `SharedStubData.cpp`, `LinuxElfPatcher.cpp`, and `WindowsTrampolineBuilder.cpp`. The changed files were listed as included in the review bundle; the remaining changed source and test files were not read. No programmatic checks, builds, or tests were run. The author-reported test results were not independently verified. ## To get this to a good state Replace the legacy packed `MOVDQA` memory load with an unaligned load and add coverage for misaligned `m128` input; rerun the reciprocal lowering and relevant end-to-end tests on the updated head.
PrivacyOnion commented 2026-11-20 11:04:19 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-20T11:04:19Z.

Review: CHANGES_REQUESTED


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

  • Conventions: tools/check_conventions.py passed.
  • Build: amd64_only_converter_tests, guest_intel_trampolines_tests, reciprocal_lowering_tests, to_intel_linux_stubs_tests, windows_trampoline_builder_tests built cleanly.
  • CTest (reciprocal_lowering, amd64_only_converter, guest_intel_trampolines, windows_trampoline_builder, to_intel_linux_stubs, guest_intel_trampolines_execution):
    1/6 Test #6374: to_intel_linux_stubs ................***Failed    0.00 sec
    2/6 Test #6164: amd64_only_converter ................   Passed    0.02 sec
    3/6 Test #6134: reciprocal_lowering .................   Passed    0.03 sec
    4/6 Test #6377: guest_intel_trampolines_execution ...***Failed    0.01 sec
    5/6 Test #6369: windows_trampoline_builder ..........   Passed    0.00 sec
    6/6 Test #6268: guest_intel_trampolines .............   Passed    0.07 sec
    67% tests passed, 2 tests failed out of 6
    
    The following tests FAILED:
    

Requesting changes for the points above.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5991649826 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/23747#pullrequestreview-5991649826). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-20T11:04:19Z. **Review:** CHANGES_REQUESTED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `d4c0520af3`: - **Conventions**: `tools/check_conventions.py` passed. - **Build**: `amd64_only_converter_tests`, `guest_intel_trampolines_tests`, `reciprocal_lowering_tests`, `to_intel_linux_stubs_tests`, `windows_trampoline_builder_tests` built cleanly. - **CTest** (`reciprocal_lowering`, `amd64_only_converter`, `guest_intel_trampolines`, `windows_trampoline_builder`, `to_intel_linux_stubs`, `guest_intel_trampolines_execution`): ``` 1/6 Test #6374: to_intel_linux_stubs ................***Failed 0.00 sec 2/6 Test #6164: amd64_only_converter ................ Passed 0.02 sec 3/6 Test #6134: reciprocal_lowering ................. Passed 0.03 sec 4/6 Test #6377: guest_intel_trampolines_execution ...***Failed 0.01 sec 5/6 Test #6369: windows_trampoline_builder .......... Passed 0.00 sec 6/6 Test #6268: guest_intel_trampolines ............. Passed 0.07 sec 67% tests passed, 2 tests failed out of 6 ``` ``` The following tests FAILED: ``` Requesting changes for the points above.
PrivacyOnion commented 2026-11-20 11:27:00 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-20T11:27:00Z.

Review: APPROVED


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

  • Conventions: tools/check_conventions.py passed.
  • Build: amd64_only_converter_tests, guest_intel_trampolines_tests, reciprocal_lowering_tests, to_intel_linux_stubs_tests, windows_trampoline_builder_tests built cleanly.
  • CTest (reciprocal_lowering, amd64_only_converter, guest_intel_trampolines, windows_trampoline_builder, to_intel_linux_stubs, guest_intel_trampolines_execution):
    1/6 Test #6134: reciprocal_lowering .................   Passed    0.13 sec
    2/6 Test #6164: amd64_only_converter ................   Passed    0.14 sec
    3/6 Test #6369: windows_trampoline_builder ..........   Passed    0.02 sec
    4/6 Test #6374: to_intel_linux_stubs ................   Passed    0.03 sec
    5/6 Test #6377: guest_intel_trampolines_execution ...   Passed    0.04 sec
    6/6 Test #6268: guest_intel_trampolines .............   Passed    0.32 sec
    100% tests passed, 0 tests failed out of 6
    
  • Negative control: with core/relinker/codegen/include/codegen/x86/Amd64OnlySubstitutionTypes.hpp, core/relinker/codegen/include/codegen/x86/ReciprocalOperands.hpp, core/relinker/codegen/include/codegen/x86/StubBodyBuilder.hpp, core/relinker/codegen/src/x86/ReciprocalLowering.cpp, core/relinker/codegen/src/x86/ReciprocalOperands.cpp, core/relinker/codegen/src/x86/StubBodyBuilder.cpp, core/relinker/elfpatcher/include/elfpatcher/linux/LinuxElfPatcher.hpp, core/relinker/elfpatcher/src/linux/LinuxElfPatcher.cpp, core/relinker/elfpatcher/src/linux/LinuxGuestModuleWriter.cpp, core/relinker/elfpatcher/src/windows/WindowsTrampolineBuilder.cpp, core/relinker/codegen/src/x86/SharedStubData.cpp, tools/reciprocal-tables/measure.cpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • Verified core/relinker/codegen/src/x86/ReciprocalLowering.cpp allocation of scratch registers and register preservation across VEX and legacy SSE paths.
    • Checked core/relinker/codegen/src/x86/ReciprocalOperands.cpp instruction decoding for legacy and VEX encodings of RCPPS, RSQRTPS, RCPSS, and RSQRTSS including memory operands and operand widths.
    • Verified table lookup and mantissa/exponent reconstruction algorithms in SharedStubData.cpp and ReciprocalLowering.cpp against desktop Zen 2 specifications and AMD x86-64 manual behavior.
    • Confirmed core/relinker/CMakeLists.txt dependency updates where to_intel_linux_stubs_tests and guest_intel_trampolines_tests now depend directly on relinker.
    • Evaluated AGENTS.md compliance regarding comments, debt tracking, third-party code, and commit/PR conventions.

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5991947008 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/23747#pullrequestreview-5991947008). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-20T11:27:00Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `6bf997882a`: - **Conventions**: `tools/check_conventions.py` passed. - **Build**: `amd64_only_converter_tests`, `guest_intel_trampolines_tests`, `reciprocal_lowering_tests`, `to_intel_linux_stubs_tests`, `windows_trampoline_builder_tests` built cleanly. - **CTest** (`reciprocal_lowering`, `amd64_only_converter`, `guest_intel_trampolines`, `windows_trampoline_builder`, `to_intel_linux_stubs`, `guest_intel_trampolines_execution`): ``` 1/6 Test #6134: reciprocal_lowering ................. Passed 0.13 sec 2/6 Test #6164: amd64_only_converter ................ Passed 0.14 sec 3/6 Test #6369: windows_trampoline_builder .......... Passed 0.02 sec 4/6 Test #6374: to_intel_linux_stubs ................ Passed 0.03 sec 5/6 Test #6377: guest_intel_trampolines_execution ... Passed 0.04 sec 6/6 Test #6268: guest_intel_trampolines ............. Passed 0.32 sec 100% tests passed, 0 tests failed out of 6 ``` - **Negative control**: with `core/relinker/codegen/include/codegen/x86/Amd64OnlySubstitutionTypes.hpp`, `core/relinker/codegen/include/codegen/x86/ReciprocalOperands.hpp`, `core/relinker/codegen/include/codegen/x86/StubBodyBuilder.hpp`, `core/relinker/codegen/src/x86/ReciprocalLowering.cpp`, `core/relinker/codegen/src/x86/ReciprocalOperands.cpp`, `core/relinker/codegen/src/x86/StubBodyBuilder.cpp`, `core/relinker/elfpatcher/include/elfpatcher/linux/LinuxElfPatcher.hpp`, `core/relinker/elfpatcher/src/linux/LinuxElfPatcher.cpp`, `core/relinker/elfpatcher/src/linux/LinuxGuestModuleWriter.cpp`, `core/relinker/elfpatcher/src/windows/WindowsTrampolineBuilder.cpp`, `core/relinker/codegen/src/x86/SharedStubData.cpp`, `tools/reciprocal-tables/measure.cpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - Verified core/relinker/codegen/src/x86/ReciprocalLowering.cpp allocation of scratch registers and register preservation across VEX and legacy SSE paths. - Checked core/relinker/codegen/src/x86/ReciprocalOperands.cpp instruction decoding for legacy and VEX encodings of RCPPS, RSQRTPS, RCPSS, and RSQRTSS including memory operands and operand widths. - Verified table lookup and mantissa/exponent reconstruction algorithms in SharedStubData.cpp and ReciprocalLowering.cpp against desktop Zen 2 specifications and AMD x86-64 manual behavior. - Confirmed core/relinker/CMakeLists.txt dependency updates where to_intel_linux_stubs_tests and guest_intel_trampolines_tests now depend directly on relinker. - Evaluated AGENTS.md compliance regarding comments, debt tracking, third-party code, and commit/PR conventions. Looks Good To Me
MarcZX10 commented 2026-11-20 11:35:47 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T11:35:47Z.

Review: COMMENTED


Reviewed — comments

The review is incomplete, so a formal merge decision is not justified.

What I ran

Inspected the prepared diff and selected source ranges at head 6bf997882aa8c9226b2e24355c1a82cdd14c7018; no build or tests were run.

Results

Check Result Note
Diff and description passed Prepared bundle inspected
Targeted source review passed Selected implementation and test ranges read
Build and tests not run No execution performed

Negative control

Not run; no tests were executed.

Findings

Blocking

None identified in the source ranges inspected.

Non-blocking

None.

Sources

Reviewed review/description.md, review/commits.md, review/manifest.json, and review/diff.patch, plus selected ranges of ReciprocalLowering.cpp, ReciprocalOperands.cpp, StubBodyBuilder.cpp, ReciprocalLoweringTests.cpp, LinuxElfPatcher.cpp, LinuxGuestModuleWriter.cpp, and WindowsTrampolineBuilder.cpp.

Not verified

The review did not read every changed line or every changed file. In particular, the complete shared table data, remaining changed source and test files, and other changed files were not reviewed. No build, test, or runtime behavior was verified. The prepared bundle lists all changed files as included; no separate files.json was available in the reader listing.

To get this to a good state

Nothing is required. Optional: complete the review of the remaining changed lines and run the relevant checks before making a formal merge decision.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5992042615 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/23747#pullrequestreview-5992042615). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-20T11:35:47Z. **Review:** COMMENTED --- # Reviewed — comments The review is incomplete, so a formal merge decision is not justified. ## What I ran Inspected the prepared diff and selected source ranges at head `6bf997882aa8c9226b2e24355c1a82cdd14c7018`; no build or tests were run. ## Results | Check | Result | Note | |---|---|---| | Diff and description | passed | Prepared bundle inspected | | Targeted source review | passed | Selected implementation and test ranges read | | Build and tests | not run | No execution performed | ## Negative control Not run; no tests were executed. ## Findings ### Blocking None identified in the source ranges inspected. ### Non-blocking None. ## Sources Reviewed `review/description.md`, `review/commits.md`, `review/manifest.json`, and `review/diff.patch`, plus selected ranges of `ReciprocalLowering.cpp`, `ReciprocalOperands.cpp`, `StubBodyBuilder.cpp`, `ReciprocalLoweringTests.cpp`, `LinuxElfPatcher.cpp`, `LinuxGuestModuleWriter.cpp`, and `WindowsTrampolineBuilder.cpp`. ## Not verified The review did not read every changed line or every changed file. In particular, the complete shared table data, remaining changed source and test files, and other changed files were not reviewed. No build, test, or runtime behavior was verified. The prepared bundle lists all changed files as included; no separate `files.json` was available in the reader listing. ## To get this to a good state Nothing is required. Optional: complete the review of the remaining changed lines and run the relevant checks before making a formal merge decision.
ligmaSec commented 2026-12-03 11:54:00 +00:00 (Migrated from github.com)

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

Review: COMMENTED


Built this head with ANYPS5_RELINKER_ONLY=ON and ran reciprocal_lowering and to_intel_linux_stubs on Linux x86-64. Both passed. This run used the repository fixtures for the reciprocal approximation and the generated Linux stubs.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6169229840 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/23747#pullrequestreview-6169229840). Originally posted by [ligmaSec](https://github.com/ligmaSec) on 2026-12-03T11:54:00Z. **Review:** COMMENTED --- Built this head with `ANYPS5_RELINKER_ONLY=ON` and ran `reciprocal_lowering` and `to_intel_linux_stubs` on Linux x86-64. Both passed. This run used the repository fixtures for the reciprocal approximation and the generated Linux stubs. 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/23747:upstream-pr/23747'
git switch 'upstream-pr/23747'

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