feat(libSceIcu): implement the numeric platform helpers #11088

Merged
mantavisual merged 9 commits from upstream-pr/11088 into main 2026-11-02 19:45:17 +00:00
mantavisual commented 2026-10-25 17:23:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by mantavisual on 2026-10-25T17:23:52Z.


What

Implements 24 libSceIcu exports from the PS5 3.20 export table: ICU's numeric platform helpers. None of them needs Unicode data.

  • IEEE 754 classification and constants: uprv_isNaN, uprv_isInfinite, uprv_isPositiveInfinity, uprv_isNegativeInfinity, uprv_getNaN, uprv_getInfinity
  • libm wrappers: uprv_floor, uprv_ceil, uprv_fabs, uprv_modf, uprv_fmod, uprv_pow, uprv_pow10, uprv_log
  • Rounding: uprv_round, uprv_trunc
  • Extremes: uprv_fmax, uprv_fmin, uprv_max, uprv_min, uprv_maxMantissa
  • Overflow and pointer limit: uprv_add32_overflow, uprv_mul32_overflow, uprv_maximumPtr

They follow ICU 78.1's putil.cpp and umath.cpp. Firmware 13.42 reports ICU 78.1 (#11013), and the 3.20 export table points to 65–68. The bodies, u_signBit and the NaN and infinity bit patterns are identical in 65.1, 66.1, 67.1, 68.1, 68.2 and 78.1, apart from C++ casts. Signatures are from putilimp.h, where UBool is int8_t in all of them. All 24 are in the 3.20 table, but BunnyFl's complete 13.42 list shows firmware 13.42 exports none of them; the debt entry says so. The code assumes ICU's default x86-64 configuration (IEEE_754 set, default U_MAX_PTR).

  • The libm wrappers call the guest libc's floor, ceil, fabs, modf, fmod, pow and log, as ICU calls the console's libc, so their precision is libc's.
  • ICU's quirks are kept and tested:
    • uprv_trunc returns positive infinity for negative infinity.
    • uprv_fmax, uprv_fmin and uprv_trunc return the canonical quiet NaN 0x7ff8000000000000, not the NaN they were given.
    • The signed-zero checks only look at one operand, so uprv_fmax(0.0, -0.0) is -0.0.
    • uprv_round floors x + 0.5, so 0.49999999999999994 rounds to 1.
  • uprv_maximumPtr adds 0x7fffffff and saturates at the top of the address space.
  • A null uprv_modf integral pointer and a null overflow result pointer throw APS5_INVALID_ARG_EX, since ICU dereferences them.

The debt entry is a second entry in docs/dev/debt/libSceIcu.md.

Depends on #10967. As agreed with AZLisme, this merges after #11013 and the #10961 → … → #10967 chain, because all of them add to the new CMakeLists.txt, libSceIcu.hpp and debt file. The branch is stacked on #11013 for now, so the diff also shows its commits; I'll rebase it onto main after #10967 merges. This PR's own commits are 2098426fbf, a43b228a4a, and the three debt-wording commits ending at 4489d407a8. The second makes the test build on LP64 Linux, where std::uint64_t is unsigned long and a mixed braced list could not deduce one type. AZLisme found and supplied that fix.

Tested

Windows 11 Pro 23H2, WinLibs GCC 15.2.0 r7, Release, BUILD_TESTING=ON, on #11013 (37d5137ea0, based on main e05ba6feeb).

  • New guest_icu_numeric:
    • Classification of quiet, signaling and negative NaN patterns, infinities, zeros, denormals and DBL_MAX, plus the exact NaN and infinity bit patterns.
    • The libm wrappers, including pow10 of negative and overflowing exponents and log of 0 and −1.
    • round at halves, at −0.5 (positive zero) and at 0.49999999999999994; trunc signed zeros, both infinities and NaN.
    • fmax/fmin with NaN on either side and all four signed-zero orderings.
    • max/min at the int32_t extremes.
    • Addition and multiplication overflow, wrapped results, and INT32_MIN * -1.
    • maximumPtr at 0, at 0x1000, at the exact top and when wrapping.
    • The null pointer rejections.
  • AZLisme built it on Linux x86-64 (GCC 16.2.1, Release) together with #11013 and #10961–#10967. With the LP64 test fix, the focused ICU tests pass there.
  • ctest -R "guest_icu_|patched_libraries": all 3 pass (guest_icu_version from #11013 included). The NID-patched libSceIcu.prx builds with 29 NID exports.
  • tools/progress.py --module libSceIcu: 29 implemented, 0 stubs. tools/check_test_registration.py build: 1342 test executables, none built and not run.
  • python3 tools/check_conventions.py --base origin/main passes. Overlap: no open PR implements or names any uprv_ function (checked 2026-10-25, including the diffs of #10961–#10967).

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
  • 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: #10967
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5006952760 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11088). Originally posted by [mantavisual](https://github.com/mantavisual) on 2026-10-25T17:23:52Z. --- ### What Implements 24 `libSceIcu` exports from the [PS5 3.20 export table](https://github.com/DNNDHH/PS5-3.20_Libs/blob/b2a77c09cd71c01f34c790cfbe98c751a13262ad/libSceIcu.c): ICU's numeric platform helpers. None of them needs Unicode data. - IEEE 754 classification and constants: `uprv_isNaN`, `uprv_isInfinite`, `uprv_isPositiveInfinity`, `uprv_isNegativeInfinity`, `uprv_getNaN`, `uprv_getInfinity` - libm wrappers: `uprv_floor`, `uprv_ceil`, `uprv_fabs`, `uprv_modf`, `uprv_fmod`, `uprv_pow`, `uprv_pow10`, `uprv_log` - Rounding: `uprv_round`, `uprv_trunc` - Extremes: `uprv_fmax`, `uprv_fmin`, `uprv_max`, `uprv_min`, `uprv_maxMantissa` - Overflow and pointer limit: `uprv_add32_overflow`, `uprv_mul32_overflow`, `uprv_maximumPtr` They follow ICU 78.1's [putil.cpp](https://github.com/unicode-org/icu/blob/release-78.1/icu4c/source/common/putil.cpp) and [umath.cpp](https://github.com/unicode-org/icu/blob/release-78.1/icu4c/source/common/umath.cpp). Firmware 13.42 reports ICU 78.1 ([#11013](https://github.com/boykopovar/AnyPS5/pull/11013#issuecomment-6400470698)), and the 3.20 export table points to 65–68. The bodies, `u_signBit` and the NaN and infinity bit patterns are identical in 65.1, 66.1, 67.1, 68.1, 68.2 and 78.1, apart from C++ casts. Signatures are from `putilimp.h`, where `UBool` is `int8_t` in all of them. All 24 are in the 3.20 table, but [BunnyFl's complete 13.42 list](https://github.com/boykopovar/AnyPS5/pull/11013#issuecomment-6401310351) shows firmware 13.42 exports none of them; the debt entry says so. The code assumes ICU's default x86-64 configuration (`IEEE_754` set, default `U_MAX_PTR`). - The libm wrappers call the guest libc's `floor`, `ceil`, `fabs`, `modf`, `fmod`, `pow` and `log`, as ICU calls the console's libc, so their precision is libc's. - ICU's quirks are kept and tested: - `uprv_trunc` returns positive infinity for negative infinity. - `uprv_fmax`, `uprv_fmin` and `uprv_trunc` return the canonical quiet NaN `0x7ff8000000000000`, not the NaN they were given. - The signed-zero checks only look at one operand, so `uprv_fmax(0.0, -0.0)` is `-0.0`. - `uprv_round` floors `x + 0.5`, so `0.49999999999999994` rounds to 1. - `uprv_maximumPtr` adds `0x7fffffff` and saturates at the top of the address space. - A null `uprv_modf` integral pointer and a null overflow result pointer throw `APS5_INVALID_ARG_EX`, since ICU dereferences them. The debt entry is a second entry in `docs/dev/debt/libSceIcu.md`. **Depends on #10967.** As [agreed with AZLisme](https://github.com/boykopovar/AnyPS5/pull/11088#issuecomment-6401396662), this merges after #11013 and the #10961 → … → #10967 chain, because all of them add to the new `CMakeLists.txt`, `libSceIcu.hpp` and debt file. The branch is stacked on #11013 for now, so the diff also shows its commits; I'll rebase it onto `main` after #10967 merges. This PR's own commits are `2098426fbf`, `a43b228a4a`, and the three debt-wording commits ending at `4489d407a8`. The second makes the test build on LP64 Linux, where `std::uint64_t` is `unsigned long` and a mixed braced list could not deduce one type. AZLisme found and supplied that fix. ### Tested Windows 11 Pro 23H2, WinLibs GCC 15.2.0 r7, Release, `BUILD_TESTING=ON`, on #11013 (`37d5137ea0`, based on `main` `e05ba6feeb`). - New `guest_icu_numeric`: - Classification of quiet, signaling and negative NaN patterns, infinities, zeros, denormals and `DBL_MAX`, plus the exact NaN and infinity bit patterns. - The libm wrappers, including `pow10` of negative and overflowing exponents and `log` of 0 and −1. - `round` at halves, at −0.5 (positive zero) and at `0.49999999999999994`; `trunc` signed zeros, both infinities and NaN. - `fmax`/`fmin` with NaN on either side and all four signed-zero orderings. - `max`/`min` at the `int32_t` extremes. - Addition and multiplication overflow, wrapped results, and `INT32_MIN * -1`. - `maximumPtr` at 0, at 0x1000, at the exact top and when wrapping. - The null pointer rejections. - AZLisme [built it on Linux x86-64](https://github.com/boykopovar/AnyPS5/pull/11088#issuecomment-6401396662) (GCC 16.2.1, Release) together with #11013 and #10961–#10967. With the LP64 test fix, the focused ICU tests pass there. - `ctest -R "guest_icu_|patched_libraries"`: all 3 pass (`guest_icu_version` from #11013 included). The NID-patched `libSceIcu.prx` builds with 29 NID exports. - `tools/progress.py --module libSceIcu`: 29 implemented, 0 stubs. `tools/check_test_registration.py build`: 1342 test executables, none built and not run. - `python3 tools/check_conventions.py --base origin/main` passes. Overlap: no open PR implements or names any `uprv_` function (checked 2026-10-25, including the diffs of #10961–#10967). ### 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) - [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: #10967 - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
MarcZX10 commented 2026-10-25 17:27:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-25T17:27:13Z.

Review: APPROVED


Reviewed the new numeric implementation and its tests against ICU 68.2’s putil.cpp and putilimp.h. The IEEE classification, round/trunc behavior, NaN and signed-zero handling, overflow-result wrapping, uprv_maxMantissa, and U_MAX_PTR saturation match the cited implementation/configuration. The boundary and exceptional cases are covered in GuestIcuNumeric.cpp.

The PR reports the focused Windows 11/WinLibs GCC 15.2 CTest run; current exact-head eligibility, conventions, intake, labels and report checks pass. Hosted product jobs are skipped by path policy. The dependency on #11013 is explicit, and #11013 now has a review approval and agreed shared-file landing order. Approved.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5644345215 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11088#pullrequestreview-5644345215). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-25T17:27:13Z. **Review:** APPROVED --- Reviewed the new numeric implementation and its tests against ICU 68.2’s [putil.cpp](https://github.com/unicode-org/icu/blob/release-68-2/icu4c/source/common/putil.cpp) and [putilimp.h](https://github.com/unicode-org/icu/blob/release-68-2/icu4c/source/common/putilimp.h). The IEEE classification, round/trunc behavior, NaN and signed-zero handling, overflow-result wrapping, `uprv_maxMantissa`, and `U_MAX_PTR` saturation match the cited implementation/configuration. The boundary and exceptional cases are covered in `GuestIcuNumeric.cpp`. The PR reports the focused Windows 11/WinLibs GCC 15.2 CTest run; current exact-head eligibility, conventions, intake, labels and report checks pass. Hosted product jobs are skipped by path policy. The dependency on #11013 is explicit, and #11013 now has a review approval and agreed shared-file landing order. Approved.
MarcZX10 commented 2026-10-25 17:41:33 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-25T17:41:33Z.

Review: APPROVED


Re-reviewed at 2098426fbf9577e7c0b425bca0e2130162288587. Since my prior approval, the code under core/libs/prx/libSceIcu is unchanged; the only change is the debt wording incorporating the firmware 13.42 ICU 78.1 evidence and clarifying that export status for these numeric helpers was not checked. That accurately limits the claim. The agreed merge order remains #11013 first, and #11013 is still open with its approval and checks passing. Current conventions, labels, eligibility, and report checks pass; product test jobs are path-skipped. Re-approving this exact head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5644398285 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11088#pullrequestreview-5644398285). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-25T17:41:33Z. **Review:** APPROVED --- Re-reviewed at `2098426fbf9577e7c0b425bca0e2130162288587`. Since my prior approval, the code under `core/libs/prx/libSceIcu` is unchanged; the only change is the debt wording incorporating the firmware 13.42 ICU 78.1 evidence and clarifying that export status for these numeric helpers was not checked. That accurately limits the claim. The agreed merge order remains #11013 first, and #11013 is still open with its approval and checks passing. Current conventions, labels, eligibility, and report checks pass; product test jobs are path-skipped. Re-approving this exact head.
MarcZX10 commented 2026-10-25 18:02:15 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-25T18:02:15Z.

Review: CHANGES_REQUESTED


The numeric implementation itself remains approved at this exact head; I am requesting only the unresolved integration-order correction required by the repository PR workflow. The current diff conflicts with the exact heads of #10961 and #10967 in the shared library CMake file, umbrella header and debt file. The existing agreement orders #11013 followed by the #10961–#10967 chain, but does not place this PR in that sequence, while its checklist lists only #11013. Please coordinate an order with @AZLisme and update Depends on to the actual predecessor before treating this review as clear. Details and exact merge-tree result are in my comment.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5644526571 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11088#pullrequestreview-5644526571). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-25T18:02:15Z. **Review:** CHANGES_REQUESTED --- The numeric implementation itself remains approved at this exact head; I am requesting only the unresolved integration-order correction required by the repository PR workflow. The current diff conflicts with the exact heads of #10961 and #10967 in the shared library CMake file, umbrella header and debt file. The existing agreement orders #11013 followed by the #10961–#10967 chain, but does not place this PR in that sequence, while its checklist lists only #11013. Please coordinate an order with @AZLisme and update `Depends on` to the actual predecessor before treating this review as clear. Details and exact merge-tree result are in my comment.
MarcZX10 commented 2026-10-25 18:23:54 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-25T18:23:54Z.

Review: CHANGES_REQUESTED


The production sources compile, but the new numeric test currently does not compile with GCC 12.2 on Linux. Reproduced on exact head 2098426fbf9577e7c0b425bca0e2130162288587 using g++ -std=c++20 -Icore/libs -fsyntax-only core/libs/tests/GuestIcuNumeric.cpp: the range-for initializer at GuestIcuNumeric.cpp:42 mixes std::uint64_t (unsigned long on LP64) with ull literals (unsigned long long), so the compiler cannot deduce one initializer-list element type. Please give this range an explicit std::array<std::uint64_t, 5> type or cast the constants, then rerun the target test/build. The other changed translation units and GuestIcuVersion.cpp pass syntax checks here; conventions and git diff --check upstream/main...HEAD pass. The hosted Linux build was skipped for this path, while the reported Windows focused tests pass.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5644636704 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11088#pullrequestreview-5644636704). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-25T18:23:54Z. **Review:** CHANGES_REQUESTED --- The production sources compile, but the new numeric test currently does not compile with GCC 12.2 on Linux. Reproduced on exact head `2098426fbf9577e7c0b425bca0e2130162288587` using `g++ -std=c++20 -Icore/libs -fsyntax-only core/libs/tests/GuestIcuNumeric.cpp`: the range-for initializer at `GuestIcuNumeric.cpp:42` mixes `std::uint64_t` (unsigned long on LP64) with `ull` literals (unsigned long long), so the compiler cannot deduce one initializer-list element type. Please give this range an explicit `std::array<std::uint64_t, 5>` type or cast the constants, then rerun the target test/build. The other changed translation units and `GuestIcuVersion.cpp` pass syntax checks here; conventions and `git diff --check upstream/main...HEAD` pass. The hosted Linux build was skipped for this path, while the reported Windows focused tests pass.
MarcZX10 commented 2026-10-29 10:21:39 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T10:21:39Z.

Review: CHANGES_REQUESTED


Re-reviewed exact head 4489d407a86d786b36c5187813908a6e139ae8ce against current main f99d7fece316e31878f0195f8bbc2ad2fbe635e4.

The earlier findings are resolved at the reported head: the LP64 initializer-list fix is present, and the stack order is agreed as #11013 → #10961–#10967 → #11088, with Depends on: #10967. #11013 has merged; #10967 remains open. The implementation and firmware-availability wording have no new issue in this re-check.

The remaining integration is still blocked. The current-main merge preview conflicts in core/libs/prx/libSceIcu/CMakeLists.txt and docs/dev/debt/libSceIcu.md; current main has changed the ICU CMake, umbrella header, and debt files since the branch base. The overlap report also identifies newer ICU PRs touching these shared files. After #10967 lands, please rebase this stack onto current main, coordinate any remaining shared-file order with those authors, and rerun guest_icu_numeric plus conventions on the exact integrated head. The Linux result currently cited is from the earlier #11013-based stack, not the current integration.

git diff --check and current-main conventions pass on the unmerged diff, but they do not resolve the merge conflict or replace the focused run. Hosted product jobs are skipped; I did not run a local build/test. Changes requested only for the remaining integration and current-head validation.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5696145422 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11088#pullrequestreview-5696145422). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T10:21:39Z. **Review:** CHANGES_REQUESTED --- Re-reviewed exact head `4489d407a86d786b36c5187813908a6e139ae8ce` against current `main` `f99d7fece316e31878f0195f8bbc2ad2fbe635e4`. The earlier findings are resolved at the reported head: the LP64 initializer-list fix is present, and the stack order is agreed as #11013 → #10961–#10967 → #11088, with `Depends on: #10967`. #11013 has merged; #10967 remains open. The implementation and firmware-availability wording have no new issue in this re-check. The remaining integration is still blocked. The current-main merge preview conflicts in `core/libs/prx/libSceIcu/CMakeLists.txt` and `docs/dev/debt/libSceIcu.md`; current `main` has changed the ICU CMake, umbrella header, and debt files since the branch base. The overlap report also identifies newer ICU PRs touching these shared files. After #10967 lands, please rebase this stack onto current `main`, coordinate any remaining shared-file order with those authors, and rerun `guest_icu_numeric` plus conventions on the exact integrated head. The Linux result currently cited is from the earlier #11013-based stack, not the current integration. `git diff --check` and current-main conventions pass on the unmerged diff, but they do not resolve the merge conflict or replace the focused run. Hosted product jobs are skipped; I did not run a local build/test. Changes requested only for the remaining integration and current-head validation.
MarcZX10 commented 2026-10-29 18:42:44 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T18:42:44Z.

Review: APPROVED


Re-checked — new head, looks good

The rebased exact head builds cleanly, and its focused numeric test passes under QEMU with the CPU features required by the project.

What I ran

  • Reviewed exact head 15f0acfdf1b1aaf57c1cc19d570b6089df3f69ca against current main bb04a4f1ea0175e9e4f149f0359a764d62ff3296; GitHub reports the PR mergeable and clean.
  • Environment: Debian Linux 6.1.190, x86_64, GCC 12.2.0, Ninja, QEMU TCG.
  • Built and ran the focused test on the exact head. Direct CTest invocation hit the project CPU-feature guard on the physical Xeon; the same test executable passed under QEMU with -cpu max.
  • Ran the conventions check and git diff --check.
  • Hosted Windows check passed. The author separately reports 71/71 ICU, patched-library, and public-header tests on Windows at this head.
cmake --build /dev/shm/AnyPS5-build-12915-full --target guest_icu_numeric_tests -j 2
ctest --test-dir /dev/shm/AnyPS5-build-12915-full -R '^guest_icu_numeric$' --output-on-failure
qemu-x86_64 -cpu max -L / /dev/shm/AnyPS5-build-12915-full/tests/guest_icu_numeric_tests
python3 tools/check_conventions.py --base upstream/main
git diff --check upstream/main...HEAD

Results

Check Result
Focused target build Passed on Linux/GCC 12.2.0
Focused numeric test Passed under QEMU TCG
Direct CTest on physical host Could not run: the host lacks CPU features the project requires
Conventions Passed
Diff check Passed
Hosted Windows check Passed
Linux and specialized hosted jobs Skipped
Author-reported broader Windows tests 71/71 passed at this head; not independently run here
Unedited build and QEMU output
[1/3] Building CXX object core/libs/prx/libSceIcu/CMakeFiles/libSceIcu.dir/Numeric.cpp.o
[2/3] Linking CXX shared library core/libs/libs/unpatched/libSceIcu.prx
[3/3] Linking CXX executable tests/guest_icu_numeric_tests
[src/HostCpu.cpp:193 operator()] host CPU QEMU TCG CPU version 2.5+: has SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, LZCNT, BMI1, BMI2, MOVBE, CMPXCHG16B, LAHF/SAHF, AVX, AVX2, FMA, F16C, AES, PCLMULQDQ, RDRAND, ADX, CLFLUSHOPT, CLWB, XSAVEOPT, SSE4A, OS AVX state (XCR0); lacks RDSEED, SHA, RDPID, XSAVEC, PREFETCHW, CLZERO
exact_head_test_exit=0
Unedited direct CTest output
Internal ctest changing into directory: /dev/shm/AnyPS5-build-12915-full
Test project /dev/shm/AnyPS5-build-12915-full
    Start 2000: guest_icu_numeric
1/1 Test #2000: guest_icu_numeric ................Subprocess aborted***Exception:   0.01 sec
[src/HostCpu.cpp:193 operator()] host CPU Intel(R) Xeon(R) CPU E5-1620 v2 @ 3.70GHz: has SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, CMPXCHG16B, LAHF/SAHF, AVX, F16C, AES, PCLMULQDQ, RDRAND, XSAVEOPT, OS AVX state (XCR0); lacks LZCNT, BMI1, BMI2, MOVBE, AVX2, FMA. The PS5's Zen 2 CPU has these extensions and titles run their instructions natively, so this CPU cannot run them.

0% tests passed, 1 tests failed out of 1

Total Test time (real) = 0.17 sec

The following tests FAILED:
	2000 - guest_icu_numeric (Subprocess aborted)
Errors while running CTest
Unedited conventions output
All conventions checks passed.

Negative control

Assertion Mutation Result
Numeric regression assertions Temporarily changed uprv_isNaN to return 0 Mutated test was not run; no negative-control result is claimed

Findings

Blocking

None found.

Non-blocking

Console behavior is not independently verified. The patch documents the ICU 78.1 source/configuration basis and keeps the firmware comparison as a verification debt.

Sources

Not verified

  • I did not run the suite on physical Windows, Linux hardware with the required CPU features, or a PS5 console.
  • The author's 71-test Windows report was read but not independently reproduced.
  • The GitHub Linux and specialized jobs were skipped.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5703147557 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11088#pullrequestreview-5703147557). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T18:42:44Z. **Review:** APPROVED --- # Re-checked — new head, looks good The rebased exact head builds cleanly, and its focused numeric test passes under QEMU with the CPU features required by the project. ## What I ran - Reviewed exact head `15f0acfdf1b1aaf57c1cc19d570b6089df3f69ca` against current `main` `bb04a4f1ea0175e9e4f149f0359a764d62ff3296`; GitHub reports the PR mergeable and clean. - Environment: Debian Linux 6.1.190, x86_64, GCC 12.2.0, Ninja, QEMU TCG. - Built and ran the focused test on the exact head. Direct CTest invocation hit the project CPU-feature guard on the physical Xeon; the same test executable passed under QEMU with `-cpu max`. - Ran the conventions check and `git diff --check`. - Hosted Windows check passed. The author separately reports 71/71 ICU, patched-library, and public-header tests on Windows at this head. ```sh cmake --build /dev/shm/AnyPS5-build-12915-full --target guest_icu_numeric_tests -j 2 ctest --test-dir /dev/shm/AnyPS5-build-12915-full -R '^guest_icu_numeric$' --output-on-failure qemu-x86_64 -cpu max -L / /dev/shm/AnyPS5-build-12915-full/tests/guest_icu_numeric_tests python3 tools/check_conventions.py --base upstream/main git diff --check upstream/main...HEAD ``` ## Results | Check | Result | |---|---| | Focused target build | Passed on Linux/GCC 12.2.0 | | Focused numeric test | Passed under QEMU TCG | | Direct CTest on physical host | Could not run: the host lacks CPU features the project requires | | Conventions | Passed | | Diff check | Passed | | Hosted Windows check | Passed | | Linux and specialized hosted jobs | Skipped | | Author-reported broader Windows tests | 71/71 passed at this head; not independently run here | <details><summary>Unedited build and QEMU output</summary> ```text [1/3] Building CXX object core/libs/prx/libSceIcu/CMakeFiles/libSceIcu.dir/Numeric.cpp.o [2/3] Linking CXX shared library core/libs/libs/unpatched/libSceIcu.prx [3/3] Linking CXX executable tests/guest_icu_numeric_tests [src/HostCpu.cpp:193 operator()] host CPU QEMU TCG CPU version 2.5+: has SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, LZCNT, BMI1, BMI2, MOVBE, CMPXCHG16B, LAHF/SAHF, AVX, AVX2, FMA, F16C, AES, PCLMULQDQ, RDRAND, ADX, CLFLUSHOPT, CLWB, XSAVEOPT, SSE4A, OS AVX state (XCR0); lacks RDSEED, SHA, RDPID, XSAVEC, PREFETCHW, CLZERO exact_head_test_exit=0 ``` </details> <details><summary>Unedited direct CTest output</summary> ```text Internal ctest changing into directory: /dev/shm/AnyPS5-build-12915-full Test project /dev/shm/AnyPS5-build-12915-full Start 2000: guest_icu_numeric 1/1 Test #2000: guest_icu_numeric ................Subprocess aborted***Exception: 0.01 sec [src/HostCpu.cpp:193 operator()] host CPU Intel(R) Xeon(R) CPU E5-1620 v2 @ 3.70GHz: has SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, CMPXCHG16B, LAHF/SAHF, AVX, F16C, AES, PCLMULQDQ, RDRAND, XSAVEOPT, OS AVX state (XCR0); lacks LZCNT, BMI1, BMI2, MOVBE, AVX2, FMA. The PS5's Zen 2 CPU has these extensions and titles run their instructions natively, so this CPU cannot run them. 0% tests passed, 1 tests failed out of 1 Total Test time (real) = 0.17 sec The following tests FAILED: 2000 - guest_icu_numeric (Subprocess aborted) Errors while running CTest ``` </details> <details><summary>Unedited conventions output</summary> ```text All conventions checks passed. ``` </details> ## Negative control | Assertion | Mutation | Result | |---|---|---| | Numeric regression assertions | Temporarily changed `uprv_isNaN` to return 0 | Mutated test was not run; no negative-control result is claimed | ## Findings ### Blocking None found. ### Non-blocking Console behavior is not independently verified. The patch documents the ICU 78.1 source/configuration basis and keeps the firmware comparison as a verification debt. ## Sources - [Numeric implementation at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/15f0acfdf1b1aaf57c1cc19d570b6089df3f69ca/core/libs/prx/libSceIcu/Numeric.cpp) - [Numeric regression tests at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/15f0acfdf1b1aaf57c1cc19d570b6089df3f69ca/core/libs/tests/GuestIcuNumeric.cpp) - [ICU registration and test setup at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/15f0acfdf1b1aaf57c1cc19d570b6089df3f69ca/core/libs/prx/libSceIcu/CMakeLists.txt) - [Contribution rules at the reviewed base](https://github.com/boykopovar/AnyPS5/blob/bb04a4f1ea0175e9e4f149f0359a764d62ff3296/CONTRIBUTING.md) ## Not verified - I did not run the suite on physical Windows, Linux hardware with the required CPU features, or a PS5 console. - The author's 71-test Windows report was read but not independently reproduced. - The GitHub Linux and specialized jobs were skipped.
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!11088
No description provided.