tooling: add an x87 area to the CPU fuzz test #1660

Merged
RenzoWit35 merged 4 commits from upstream-pr/1667 into main 2026-11-25 19:02:36 +00:00
RenzoWit35 commented 2026-11-24 16:44:09 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by RenzoWit35 on 2026-11-24T16:44:09Z.


Change

Adds cpu_aot_fuzz_x87 (--area x87) to tools/fuzz_cpu.py, with its own seed (0x8087, 40 exports) and a CMake block like cpu_aot_fuzz_loops (CPU_FUZZ_X87_SEED, CPU_FUZZ_X87_FUNCTIONS).

  • Translator path. The x87 profile lives in the shared integer lowering (ffx_version_query.lower(..., x87=True), tools/x87_lower.py), not in cpu_switch_aot. The area adds a small adapter, x87_translate, that lowers each export's function range the same way the cpu_aot_x87_* fixtures do, with INTEGER_HEADER and X87_HEADER, into lifted_<name>(x, y, out). translator_module("x87") returns it, so translate, check, the controls and the mutant run unchanged.
  • Generator. Straight-line exports. Each first writes its operands to the output buffer: x at 0, y at 8, and two m80 values built from x, y and the other's top word at 16 and 32. FNSTCW then stores the control word at 48. The lowering fixes that word at 0x027F, so a native run under another word would mismatch there. Then up to 17 operations (two loads, one of each kind in turn, and 6 to 14 more), each chosen to suit the stack depth:
    • loads: FLD m32/m64/m80/ST(i), FILD m16/m32/m64, and the seven constant loads;
    • arithmetic: FADD/FSUB/FSUBR/FMUL/FDIV/FDIVR with memory, ST, ST(i), ST(i), ST and the popping forms, and FIADD to FIDIVR with m16/m32;
    • unary: FCHS, FABS, FSQRT, FRNDINT, FXCH;
    • stores: FST/FSTP to m32/m64/m80/ST(i), FIST, FISTP, FISTTP;
    • compares: FCOMI/FUCOMI(P) then SETcc; FCOM/FCOMP/FCOMPP/FUCOM*/FTST/FICOM(P)/FXAM, then FNSTSW AX and either SAHF + SETcc or AND AH, 45h + a byte store;
    • moves: FCMOVcc after FCOMI, SAHF or CMP RCX, RDX.
      The remaining stack is drained with popping stores. Results go to bytes 64 to 255, and RAX is the first result qword.
  • Constraints. No overflow or underflow, and an empty stack at RET. PF (SETP/SETNP/FCMOVU/FCMOVNU) is read only after FCOMI or SAHF. C1, the exception flags and AL after FNSTSW are never read, and RAX is overwritten before the return. These are exactly the profile's documented rules.
  • Values are not restricted. Inputs are the 17 x 17 combinations of 17 edge words (double edges, a quiet NaN with a payload, a signalling NaN, packed edge floats, integer edges), then normal m80 values near 1 and random bits. Denormals, NaN payloads, unsupported m80 encodings and integer-store overflow therefore all occur. x87_soft.h claims a bit-exact model there, and nothing is masked.
  • Controls. Four refused controls: nine pushes (x87 stack overflow), a store from an empty stack (x87 stack underflow), a return with a value (x87 stack not empty at return) and FINCSTP (unsupported x87 operation; the profile documents FINCSTP and FDECSTP as outside its model, and open PR #1663 proposes to lower FSIN, so that one is not used as the control).
  • Mutant subr_as_sub. It lowers FSUBR and FSUBRP like FSUB and FSUBP, by patching x87_lower.ARITHMETIC in the translate process. The code stays straight-line, so the mutant is bounded. The plant fails if no export uses FSUBR or FSUBRP.
  • Docs. One docs/experiments.md paragraph after the loops entry, with the manual long-run command.

Out of scope: FXTRACT, FSCALE, the checked entry's FLDCW, FNINIT, FPREM/FPREM1, FBLD/FBSTP, FNSTSW m16, FFREE/FFREEP, branches or calls with x87 state, and a caller value on the x87 stack. The cpu_aot_x87_* fixtures cover those through x87_harness.asm.

Verification

Environment: Windows 11 Enterprise build 26300, MSVC 19.51 (Build Tools, toolset 14.51.36231), ML64 14.51, Python 3.14.5, at the commit of this PR, rebased on c864f138.

. .\tools\dev.ps1
cmake --preset dev
cmake --build --preset dev --parallel 4 --target cpu_fuzz_x87 cpu_fuzz_x87_lifted cpu_fuzz_x87_lifted_o2 cpu_fuzz_x87_mutant   # plus the other areas' cpu_fuzz_* targets
ctest --preset dev -R "^cpu_aot_fuzz_" --no-tests=error
cmake --preset release
cmake --build --preset release --parallel 4 --target <same targets>
ctest --preset release -R "^cpu_aot_fuzz_" --no-tests=error
  • dev: 9/9 passed, 0 failed, 0 skipped, 11.1 s total. cpu_aot_fuzz_x87 took 1.7 s.
  • release: 9/9 passed, 0 failed, 0 skipped, 10.5 s total. cpu_aot_fuzz_x87 took 1.7 s.
  • cpu_aot_fuzz_x87 -V: area=x87 seed=0x8087 functions=40 inputs=313 comparisons=25040 default and /O2 matched. All four controls were refused with the expected messages, and mutant subr_as_sub: 675/12520 mismatches in 7/40 functions (10 of the 40 exports use FSUBR/FSUBRP).
  • Negative checks:
    • Passing the clean translation as --mutant exits 1 with the planted translator fault was not detected.
    • Passing the mutant as the translation exits 1 at the first mismatch (fuzz_x87_6, input 1) and prints the MASM and the reproduction command.
  • Long runs (measured on the earlier base 0ccde933; no translator file changed since) through the documented CMake variables (cmake --preset dev -DCPU_FUZZ_X87_SEED=<seed> -DCPU_FUZZ_X87_FUNCTIONS=160, build the three x87 targets, then ctest --preset dev --no-tests=error -R '^cpu_aot_fuzz_x87$' -V):
    • seeds 0x1, 0x2, 0xBEEF and 0xCCD1 at 160 exports: 100,160 comparisons each, about 4 to 5 s, no refusal and no mismatch;
    • the mutant differed in 4,518, 2,959, 4,679 and 4,686 of 50,080 calls.
    • Before the CMake wiring, direct runs of the same commands at 0x8087 with 400 exports and at 0x1, 0x2, 0x3 and 0xBEEF with 300 exports also had no mismatch (938,400 comparisons).
  • Byte identity of the existing areas, checked before and after the change (measured on the earlier base 0ccde933):
    • emit: python -B tools/fuzz_cpu.py emit <seed> <count> a.asm a.def --area <area> for every area at its CMake seed and count (leaf 0xA902/20, frames 0xF4A3/16, calls 0xCA11/16, chains 0xCA11/16, switches 0x5717/48, scalar_fp 0xF10A/60, rsp 0xB0D1/36, loops 0x100F/32). The SHA-256 of the .asm and .def is identical for all eight areas.
    • translate: origin/main's tools/ (git archive origin/main tools) translated the native DLLs built on this branch. The resulting *_lifted.cpp and *_mutant.cpp are byte-identical to the branch's own for all eight areas (15 files), in both the dev and release builds.
  • tests/docs_links_check.py and tests/bidi_controls_check.py pass.

Not verified: CI on GitHub, other processors (only this machine's Intel CPU; the x87 NaN-selection rules are the ones the cpu_aot_x87_* fixtures already rely on), and non-Windows hosts.

Evidence and follow-up

Refs #446. This adds the x87 area that the issue lists as optional. No real mismatch between native and translated x87 code was found at the default seed or in about 1.4 million comparisons over 2,280 generated exports, so the generator has no exclusion. Possible follow-ups: FXTRACT and FSCALE, the checked entry (FLDCW, FNINIT, FPREM) with a status-aware comparison, and x87 state across branches.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6586804163 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1667). Originally posted by [RenzoWit35](https://github.com/RenzoWit35) on 2026-11-24T16:44:09Z. --- ## Change Adds `cpu_aot_fuzz_x87` (`--area x87`) to `tools/fuzz_cpu.py`, with its own seed (`0x8087`, 40 exports) and a CMake block like `cpu_aot_fuzz_loops` (`CPU_FUZZ_X87_SEED`, `CPU_FUZZ_X87_FUNCTIONS`). - **Translator path.** The x87 profile lives in the shared integer lowering (`ffx_version_query.lower(..., x87=True)`, `tools/x87_lower.py`), not in `cpu_switch_aot`. The area adds a small adapter, `x87_translate`, that lowers each export's function range the same way the `cpu_aot_x87_*` fixtures do, with `INTEGER_HEADER` and `X87_HEADER`, into `lifted_<name>(x, y, out)`. `translator_module("x87")` returns it, so `translate`, `check`, the controls and the mutant run unchanged. - **Generator.** Straight-line exports. Each first writes its operands to the output buffer: x at 0, y at 8, and two m80 values built from x, y and the other's top word at 16 and 32. `FNSTCW` then stores the control word at 48. The lowering fixes that word at 0x027F, so a native run under another word would mismatch there. Then up to 17 operations (two loads, one of each kind in turn, and 6 to 14 more), each chosen to suit the stack depth: - loads: `FLD` m32/m64/m80/ST(i), `FILD` m16/m32/m64, and the seven constant loads; - arithmetic: `FADD`/`FSUB`/`FSUBR`/`FMUL`/`FDIV`/`FDIVR` with memory, `ST, ST(i)`, `ST(i), ST` and the popping forms, and `FIADD` to `FIDIVR` with m16/m32; - unary: `FCHS`, `FABS`, `FSQRT`, `FRNDINT`, `FXCH`; - stores: `FST`/`FSTP` to m32/m64/m80/ST(i), `FIST`, `FISTP`, `FISTTP`; - compares: `FCOMI`/`FUCOMI(P)` then `SETcc`; `FCOM`/`FCOMP`/`FCOMPP`/`FUCOM*`/`FTST`/`FICOM(P)`/`FXAM`, then `FNSTSW AX` and either `SAHF` + `SETcc` or `AND AH, 45h` + a byte store; - moves: `FCMOVcc` after `FCOMI`, `SAHF` or `CMP RCX, RDX`. The remaining stack is drained with popping stores. Results go to bytes 64 to 255, and RAX is the first result qword. - **Constraints.** No overflow or underflow, and an empty stack at `RET`. PF (`SETP`/`SETNP`/`FCMOVU`/`FCMOVNU`) is read only after `FCOMI` or `SAHF`. C1, the exception flags and AL after `FNSTSW` are never read, and RAX is overwritten before the return. These are exactly the profile's documented rules. - **Values are not restricted.** Inputs are the 17 x 17 combinations of 17 edge words (double edges, a quiet NaN with a payload, a signalling NaN, packed edge floats, integer edges), then normal m80 values near 1 and random bits. Denormals, NaN payloads, unsupported m80 encodings and integer-store overflow therefore all occur. `x87_soft.h` claims a bit-exact model there, and nothing is masked. - **Controls.** Four refused controls: nine pushes (`x87 stack overflow`), a store from an empty stack (`x87 stack underflow`), a return with a value (`x87 stack not empty at return`) and `FINCSTP` (`unsupported x87 operation`; the profile documents `FINCSTP` and `FDECSTP` as outside its model, and open PR #1663 proposes to lower `FSIN`, so that one is not used as the control). - **Mutant `subr_as_sub`.** It lowers `FSUBR` and `FSUBRP` like `FSUB` and `FSUBP`, by patching `x87_lower.ARITHMETIC` in the translate process. The code stays straight-line, so the mutant is bounded. The plant fails if no export uses `FSUBR` or `FSUBRP`. - **Docs.** One `docs/experiments.md` paragraph after the loops entry, with the manual long-run command. Out of scope: `FXTRACT`, `FSCALE`, the checked entry's `FLDCW`, `FNINIT`, `FPREM`/`FPREM1`, `FBLD`/`FBSTP`, `FNSTSW` m16, `FFREE`/`FFREEP`, branches or calls with x87 state, and a caller value on the x87 stack. The `cpu_aot_x87_*` fixtures cover those through `x87_harness.asm`. ## Verification Environment: Windows 11 Enterprise build 26300, MSVC 19.51 (Build Tools, toolset 14.51.36231), ML64 14.51, Python 3.14.5, at the commit of this PR, rebased on `c864f138`. ```powershell . .\tools\dev.ps1 cmake --preset dev cmake --build --preset dev --parallel 4 --target cpu_fuzz_x87 cpu_fuzz_x87_lifted cpu_fuzz_x87_lifted_o2 cpu_fuzz_x87_mutant # plus the other areas' cpu_fuzz_* targets ctest --preset dev -R "^cpu_aot_fuzz_" --no-tests=error cmake --preset release cmake --build --preset release --parallel 4 --target <same targets> ctest --preset release -R "^cpu_aot_fuzz_" --no-tests=error ``` - `dev`: 9/9 passed, 0 failed, 0 skipped, 11.1 s total. `cpu_aot_fuzz_x87` took 1.7 s. - `release`: 9/9 passed, 0 failed, 0 skipped, 10.5 s total. `cpu_aot_fuzz_x87` took 1.7 s. - `cpu_aot_fuzz_x87 -V`: `area=x87 seed=0x8087 functions=40 inputs=313 comparisons=25040 default and /O2 matched`. All four controls were refused with the expected messages, and `mutant subr_as_sub: 675/12520 mismatches in 7/40 functions` (10 of the 40 exports use `FSUBR`/`FSUBRP`). - Negative checks: - Passing the clean translation as `--mutant` exits 1 with `the planted translator fault was not detected`. - Passing the mutant as the translation exits 1 at the first mismatch (`fuzz_x87_6`, input 1) and prints the MASM and the reproduction command. - Long runs (measured on the earlier base `0ccde933`; no translator file changed since) through the documented CMake variables (`cmake --preset dev -DCPU_FUZZ_X87_SEED=<seed> -DCPU_FUZZ_X87_FUNCTIONS=160`, build the three x87 targets, then `ctest --preset dev --no-tests=error -R '^cpu_aot_fuzz_x87$' -V`): - seeds `0x1`, `0x2`, `0xBEEF` and `0xCCD1` at 160 exports: 100,160 comparisons each, about 4 to 5 s, no refusal and no mismatch; - the mutant differed in 4,518, 2,959, 4,679 and 4,686 of 50,080 calls. - Before the CMake wiring, direct runs of the same commands at `0x8087` with 400 exports and at `0x1`, `0x2`, `0x3` and `0xBEEF` with 300 exports also had no mismatch (938,400 comparisons). - **Byte identity of the existing areas**, checked before and after the change (measured on the earlier base `0ccde933`): - `emit`: `python -B tools/fuzz_cpu.py emit <seed> <count> a.asm a.def --area <area>` for every area at its CMake seed and count (leaf `0xA902`/20, frames `0xF4A3`/16, calls `0xCA11`/16, chains `0xCA11`/16, switches `0x5717`/48, scalar_fp `0xF10A`/60, rsp `0xB0D1`/36, loops `0x100F`/32). The SHA-256 of the `.asm` and `.def` is identical for all eight areas. - `translate`: origin/main's `tools/` (`git archive origin/main tools`) translated the native DLLs built on this branch. The resulting `*_lifted.cpp` and `*_mutant.cpp` are byte-identical to the branch's own for all eight areas (15 files), in both the `dev` and `release` builds. - `tests/docs_links_check.py` and `tests/bidi_controls_check.py` pass. Not verified: CI on GitHub, other processors (only this machine's Intel CPU; the x87 NaN-selection rules are the ones the `cpu_aot_x87_*` fixtures already rely on), and non-Windows hosts. ## Evidence and follow-up Refs #446. This adds the x87 area that the issue lists as optional. No real mismatch between native and translated x87 code was found at the default seed or in about 1.4 million comparisons over 2,280 generated exports, so the generator has no exclusion. Possible follow-ups: `FXTRACT` and `FSCALE`, the checked entry (`FLDCW`, `FNINIT`, `FPREM`) with a status-aware comparison, and x87 state across branches. AI-assisted.
tedin7 commented 2026-11-24 17:01:58 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T16:55:08Z.

Review: COMMENTED


Independent technical peer review of PR #1667 at head commit 79a8bca3d343d19f76163147572fdb9a7b3b79d8.

Summary

  • Scope & title-neutrality: clean (CMakeLists.txt, docs/experiments.md, tools/fuzz_cpu.py).
  • Diff & logic: X87Builder, generate_x87, x87_inputs, x87_translate, and plant_subr_as_sub are sound; stack depth and flag-liveness (fcomi vs integer) are tracked consistently.

Findings

  • Nit (docs/experiments.md:2723): The doc lists the fourth negative control as `FSIN` (`unsupported x87 operation`), whereas X87_CONTROLS["fincstp"] in tools/fuzz_cpu.py actually emits fld1 / fincstp / fdecstp / fstp QWORD PTR [r8+64] / ret.
  • Note (CMakeLists.txt): cpu_fuzz_x87_lifted_o2 is an add_custom_target(... ALL ...) whose output DLL is passed by file path to add_test(NAME cpu_aot_fuzz_x87 ...); selective builds that only build targets referenced by add_test must also include cpu_fuzz_x87_lifted_o2 explicitly (otherwise cpu_aot_fuzz_x87 fails with FileNotFoundError for cpu_fuzz_x87_lifted_o2.dll).

Verification Executed Locally

  • Linux:
    • git diff --check origin/main...HEAD — passed.
    • /root/.local/share/x2w-rev-venv/bin/python -B tests/docs_links_check.py — passed (16 Markdown files, 352 links).
    • /root/.local/share/x2w-rev-venv/bin/python -B tests/bidi_controls_check.py — passed (1277 files).
    • python3 -m py_compile tools/fuzz_cpu.py — passed.
    • python3 tools/fuzz_cpu.py emit 0x8087 40 /tmp/rev-x2w-80/test_x87.asm /tmp/rev-x2w-80/test_x87.def --area x87 — passed (44 functions, 45 exports in .def including controls).
  • Windows Server 2025 (Build 26100, MSVC 14.44.35207):
    • x2w_pipe.py win2025 1667 --targets cpu_fuzz_x87,cpu_fuzz_x87_lifted,cpu_fuzz_x87_lifted_o2,cpu_fuzz_x87_mutant --regex '^cpu_aot_fuzz_x87$' --force:
      • Debug (--preset dev): cpu_aot_fuzz_x87 1/1 passed (1.06s).
      • Release /O2 (--preset release): cpu_aot_fuzz_x87 1/1 passed (0.98s).
  • Local mutation check:
    • Temporarily replaced "fsubr", with "fsub", in X87_ARITHMETIC (tools/fuzz_cpu.py) and ran fuzz_cpu.plant_subr_as_sub(None, None, fuzz_cpu.generate_x87(0x8087, 40)) — failed as expected with the subr_as_sub fault found no FSUBR or FSUBRP (exit=1), then restored via git checkout -- ..

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6043671252 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1667#pullrequestreview-6043671252). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-24T16:55:08Z. **Review:** COMMENTED --- Independent technical peer review of PR #1667 at head commit `79a8bca3d343d19f76163147572fdb9a7b3b79d8`. ### Summary - Scope & title-neutrality: clean (`CMakeLists.txt`, `docs/experiments.md`, `tools/fuzz_cpu.py`). - Diff & logic: `X87Builder`, `generate_x87`, `x87_inputs`, `x87_translate`, and `plant_subr_as_sub` are sound; stack depth and flag-liveness (`fcomi` vs `integer`) are tracked consistently. ### Findings - **Nit (`docs/experiments.md:2723`)**: The doc lists the fourth negative control as `` `FSIN` (`unsupported x87 operation`) ``, whereas `X87_CONTROLS["fincstp"]` in `tools/fuzz_cpu.py` actually emits `fld1` / `fincstp` / `fdecstp` / `fstp QWORD PTR [r8+64]` / `ret`. - **Note (`CMakeLists.txt`)**: `cpu_fuzz_x87_lifted_o2` is an `add_custom_target(... ALL ...)` whose output DLL is passed by file path to `add_test(NAME cpu_aot_fuzz_x87 ...)`; selective builds that only build targets referenced by `add_test` must also include `cpu_fuzz_x87_lifted_o2` explicitly (otherwise `cpu_aot_fuzz_x87` fails with `FileNotFoundError` for `cpu_fuzz_x87_lifted_o2.dll`). ### Verification Executed Locally - **Linux**: - `git diff --check origin/main...HEAD` — passed. - `/root/.local/share/x2w-rev-venv/bin/python -B tests/docs_links_check.py` — passed (16 Markdown files, 352 links). - `/root/.local/share/x2w-rev-venv/bin/python -B tests/bidi_controls_check.py` — passed (1277 files). - `python3 -m py_compile tools/fuzz_cpu.py` — passed. - `python3 tools/fuzz_cpu.py emit 0x8087 40 /tmp/rev-x2w-80/test_x87.asm /tmp/rev-x2w-80/test_x87.def --area x87` — passed (44 functions, 45 exports in `.def` including controls). - **Windows Server 2025 (Build 26100, MSVC 14.44.35207)**: - `x2w_pipe.py win2025 1667 --targets cpu_fuzz_x87,cpu_fuzz_x87_lifted,cpu_fuzz_x87_lifted_o2,cpu_fuzz_x87_mutant --regex '^cpu_aot_fuzz_x87$' --force`: - **Debug (`--preset dev`)**: `cpu_aot_fuzz_x87` **1/1 passed** (`1.06s`). - **Release `/O2` (`--preset release`)**: `cpu_aot_fuzz_x87` **1/1 passed** (`0.98s`). - **Local mutation check**: - Temporarily replaced `"fsubr",` with `"fsub",` in `X87_ARITHMETIC` (`tools/fuzz_cpu.py`) and ran `fuzz_cpu.plant_subr_as_sub(None, None, fuzz_cpu.generate_x87(0x8087, 40))` — failed as expected with `the subr_as_sub fault found no FSUBR or FSUBRP` (`exit=1`), then restored via `git checkout -- .`. AI-assisted; commands listed were executed locally.
ChazY11 commented 2026-11-24 19:01:38 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by ChazY11 on 2026-11-24T18:08:25Z.


Built and ran; the --mutant control is real

At 79a8bca3, after configuring and building the four DLLs the test loads:

cmake --preset dev
cmake --build --preset dev --target cpu_fuzz_x87 cpu_fuzz_x87_lifted cpu_fuzz_x87_lifted_o2 cpu_fuzz_x87_mutant
ctest --preset dev --no-tests=error -R '^cpu_aot_fuzz_x87$' -V
area=x87 seed=0x8087 functions=40 inputs=313 comparisons=25040 default and /O2 matched
controls refused: fuzz_x87_refused_overflow (x87 stack overflow), fuzz_x87_refused_underflow (x87 stack underflow),
                  fuzz_x87_refused_live (x87 stack not empty at return), fuzz_x87_refused_fincstp (unsupported x87 operation)
1/1 Test #433: cpu_aot_fuzz_x87 ... Passed 1.92 s

One practical note: running the test after a configure but before building those targets fails with
FileNotFoundError: Could not find module ...cpu_fuzz_x87.dll, not with a message about the missing build. Anyone touching
this fixture will hit it once; a sentence in the docs entry saying which targets to build first would save them the trip.

Is the negative control load-bearing?

--mutant is only useful if the harness fails when the mutant does not diverge, so I pointed it at an unmodified lifted
DLL:

out/pe-env/Scripts/python.exe -B tools/fuzz_cpu.py check 0x8087 5 \
    out/build/dev/cpu_fuzz_x87.dll out/build/dev/cpu_fuzz_x87_lifted.dll \
    out/build/dev/cpu_fuzz_x87_lifted_o2.dll --area x87 --mutant out/build/dev/cpu_fuzz_x87_lifted.dll
mutant subr_as_sub: 0/1565 mismatches in 0/5 functions      exit 1

It fails, which is the correct behaviour: the control proves the comparison can see a difference, rather than passing
because nothing was compared.

Two questions about determinism

  1. inputs=313 for 40 functions — are those inputs fixed constants or seeded per machine? x87 results depend on the host
    precision-control word and on how the lifted code is compiled, so a seed that is merely "stable on my machine" would
    make this fixture the first one in the CPU area whose pass depends on the host. If they are fixed tables, one line in
    the docs entry saying so is enough.
  2. The four refused controls are a good set. Is there a control for the precision-control difference (a 64-bit vs
    80-bit intermediate) in the x87 area? That is the failure mode this area can see and most of the others cannot, and if
    the fixture does not exercise it, the --area x87 name promises slightly more than it checks.

Neither blocks the change; both are the kind of thing a reader will assume from the summary line.

Verdict

Reviewed 79a8bca3. The fixture runs, the comparisons are counted, the refused controls are named individually, and the
mutant check fails when it should. No objections.

Notes

  • AI-assisted review.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7140214803 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1667#issuecomment-7140214803). Originally posted by [ChazY11](https://github.com/ChazY11) on 2026-11-24T18:08:25Z. --- ## Built and ran; the `--mutant` control is real At `79a8bca3`, after configuring and building the four DLLs the test loads: ```powershell cmake --preset dev cmake --build --preset dev --target cpu_fuzz_x87 cpu_fuzz_x87_lifted cpu_fuzz_x87_lifted_o2 cpu_fuzz_x87_mutant ctest --preset dev --no-tests=error -R '^cpu_aot_fuzz_x87$' -V ``` ```text area=x87 seed=0x8087 functions=40 inputs=313 comparisons=25040 default and /O2 matched controls refused: fuzz_x87_refused_overflow (x87 stack overflow), fuzz_x87_refused_underflow (x87 stack underflow), fuzz_x87_refused_live (x87 stack not empty at return), fuzz_x87_refused_fincstp (unsupported x87 operation) 1/1 Test #433: cpu_aot_fuzz_x87 ... Passed 1.92 s ``` One practical note: running the test after a configure but before building those targets fails with `FileNotFoundError: Could not find module ...cpu_fuzz_x87.dll`, not with a message about the missing build. Anyone touching this fixture will hit it once; a sentence in the docs entry saying which targets to build first would save them the trip. ## Is the negative control load-bearing? `--mutant` is only useful if the harness fails when the mutant does **not** diverge, so I pointed it at an unmodified lifted DLL: ```powershell out/pe-env/Scripts/python.exe -B tools/fuzz_cpu.py check 0x8087 5 \ out/build/dev/cpu_fuzz_x87.dll out/build/dev/cpu_fuzz_x87_lifted.dll \ out/build/dev/cpu_fuzz_x87_lifted_o2.dll --area x87 --mutant out/build/dev/cpu_fuzz_x87_lifted.dll ``` ```text mutant subr_as_sub: 0/1565 mismatches in 0/5 functions exit 1 ``` It fails, which is the correct behaviour: the control proves the comparison can see a difference, rather than passing because nothing was compared. ## Two questions about determinism 1. `inputs=313` for 40 functions — are those inputs fixed constants or seeded per machine? x87 results depend on the host precision-control word and on how the lifted code is compiled, so a seed that is merely "stable on my machine" would make this fixture the first one in the CPU area whose pass depends on the host. If they are fixed tables, one line in the docs entry saying so is enough. 2. The four refused controls are a good set. Is there a control for the **precision-control** difference (a 64-bit vs 80-bit intermediate) in the x87 area? That is the failure mode this area can see and most of the others cannot, and if the fixture does not exercise it, the `--area x87` name promises slightly more than it checks. Neither blocks the change; both are the kind of thing a reader will assume from the summary line. ## Verdict Reviewed `79a8bca3`. The fixture runs, the comparisons are counted, the refused controls are named individually, and the mutant check fails when it should. No objections. ## Notes - AI-assisted review.
RenzoWit35 commented 2026-11-25 01:01:54 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by RenzoWit35 on 2026-11-24T23:27:17Z.


Thanks both.

  • Docs nit: fixed in b7137699. The fourth control is the fld1 / fincstp / fdecstp sequence, not FSIN.
  • Determinism: the inputs come from x87_inputs(seed), which uses random.Random(seed ^ 0x8087) after a fixed table of 17 operand words. Python's random.Random gives the same sequence on every machine, so the inputs depend only on the seed (default 0x8087), not on the host.
  • Precision control: each export stores the control word with FNSTCW at output offset 48. The lowering fixes that word at 0x027F (53-bit double precision, the Windows x64 default), so a native run under another control word mismatches there. This area has no 53-bit vs 64-bit control of its own. cpu_aot_x87_mul and cpu_aot_x87_div already have one: a "64-bit precision" mutated translation that must mismatch.
  • Selective builds: cpu_aot_fuzz_x87 needs cpu_fuzz_x87_lifted, cpu_fuzz_x87_lifted_o2 and cpu_fuzz_x87_mutant built. The docs entry names these targets for the longer-run command.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7147418157 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1667#issuecomment-7147418157). Originally posted by [RenzoWit35](https://github.com/RenzoWit35) on 2026-11-24T23:27:17Z. --- Thanks both. - Docs nit: fixed in b7137699. The fourth control is the `fld1` / `fincstp` / `fdecstp` sequence, not `FSIN`. - Determinism: the inputs come from `x87_inputs(seed)`, which uses `random.Random(seed ^ 0x8087)` after a fixed table of 17 operand words. Python's `random.Random` gives the same sequence on every machine, so the inputs depend only on the seed (default `0x8087`), not on the host. - Precision control: each export stores the control word with `FNSTCW` at output offset 48. The lowering fixes that word at 0x027F (53-bit double precision, the Windows x64 default), so a native run under another control word mismatches there. This area has no 53-bit vs 64-bit control of its own. `cpu_aot_x87_mul` and `cpu_aot_x87_div` already have one: a "64-bit precision" mutated translation that must mismatch. - Selective builds: `cpu_aot_fuzz_x87` needs `cpu_fuzz_x87_lifted`, `cpu_fuzz_x87_lifted_o2` and `cpu_fuzz_x87_mutant` built. The docs entry names these targets for the longer-run command. AI-assisted.
tedin7 commented 2026-11-25 03:00:45 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T02:29:41Z.

Review: COMMENTED


Independent technical peer review of PR #1667 at head commit b7137699e64b917575400874288d69dd40c0a581.

Summary

  • Scope: CMakeLists.txt, docs/experiments.md, tools/fuzz_cpu.py (+293/-3). Title and body are neutral; no clean-room concerns. Mergeable.
  • CI at this head: Linux Python checks pass, Windows build and test pass, gfx1013 fixtures pass.
  • New x87 area: X87Builder tracks stack depth and flag liveness (FCOMI/SAHF vs integer flags) consistently. The four negative controls and the subr_as_sub mutant are wired like the sibling areas (MUTANTS, AREAS, translator_module). Other areas' emit output is untouched.
  • The earlier doc nit (fourth control named as FSIN) is fixed in this head: the docs now say FINCSTP, matching X87_CONTROLS["fincstp"].

Findings

  • P1: none.
  • P2: none.
  • Nit (CMakeLists.txt, cpu_fuzz_x87_lifted_o2): the test takes the /O2 DLL by path, and the target is only ALL. A selective build must name cpu_fuzz_x87_lifted_o2 (the docs already list it in the build command). The sibling areas behave the same way.
  • Nit (tools/fuzz_cpu.py, plant_subr_as_sub): it mutates x87_lower.ARITHMETIC in place. Fine for a one-shot process, and the same global-patch style as the other planted faults.

Verification executed locally (Linux)

  • python3 tests/docs_links_check.py: self-test passed, 16 Markdown files, 352 links.
  • python3 tests/bidi_controls_check.py: 1277 files, no bidirectional controls.
  • git diff --check origin/main...HEAD: clean.
  • python3 -B tools/fuzz_cpu.py emit 0x8087 40 ... --area x87: runs, 1534 asm lines, byte-identical on a second run (deterministic).
  • Mutation: replaced while self.depth: in X87Builder.finish with while False:. The emitted asm changed (stack-popping instructions fell from 191 to 94, loads 203 to 200). Exports then return with values on the x87 stack, which the lowering refuses with x87 stack not empty at return, so the translate step of the test would fail. Reverted with git checkout -- ..
  • Not run locally: the MASM/MSVC build, translate and check need Windows (PE image). I relied on the passing Windows CI job for this head and did not run a separate Win2025 job. The PR does not touch gfx2hlsl or shaders.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6050854090 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1667#pullrequestreview-6050854090). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T02:29:41Z. **Review:** COMMENTED --- Independent technical peer review of PR #1667 at head commit `b7137699e64b917575400874288d69dd40c0a581`. ### Summary - Scope: `CMakeLists.txt`, `docs/experiments.md`, `tools/fuzz_cpu.py` (+293/-3). Title and body are neutral; no clean-room concerns. Mergeable. - CI at this head: Linux Python checks pass, Windows build and test pass, gfx1013 fixtures pass. - New x87 area: `X87Builder` tracks stack depth and flag liveness (FCOMI/SAHF vs integer flags) consistently. The four negative controls and the `subr_as_sub` mutant are wired like the sibling areas (`MUTANTS`, `AREAS`, `translator_module`). Other areas' `emit` output is untouched. - The earlier doc nit (fourth control named as FSIN) is fixed in this head: the docs now say FINCSTP, matching `X87_CONTROLS["fincstp"]`. ### Findings - P1: none. - P2: none. - Nit (`CMakeLists.txt`, `cpu_fuzz_x87_lifted_o2`): the test takes the `/O2` DLL by path, and the target is only `ALL`. A selective build must name `cpu_fuzz_x87_lifted_o2` (the docs already list it in the build command). The sibling areas behave the same way. - Nit (`tools/fuzz_cpu.py`, `plant_subr_as_sub`): it mutates `x87_lower.ARITHMETIC` in place. Fine for a one-shot process, and the same global-patch style as the other planted faults. ### Verification executed locally (Linux) - `python3 tests/docs_links_check.py`: self-test passed, 16 Markdown files, 352 links. - `python3 tests/bidi_controls_check.py`: 1277 files, no bidirectional controls. - `git diff --check origin/main...HEAD`: clean. - `python3 -B tools/fuzz_cpu.py emit 0x8087 40 ... --area x87`: runs, 1534 asm lines, byte-identical on a second run (deterministic). - Mutation: replaced `while self.depth:` in `X87Builder.finish` with `while False:`. The emitted asm changed (stack-popping instructions fell from 191 to 94, loads 203 to 200). Exports then return with values on the x87 stack, which the lowering refuses with `x87 stack not empty at return`, so the translate step of the test would fail. Reverted with `git checkout -- .`. - Not run locally: the MASM/MSVC build, `translate` and `check` need Windows (PE image). I relied on the passing Windows CI job for this head and did not run a separate Win2025 job. The PR does not touch gfx2hlsl or shaders. AI-assisted; commands listed were executed locally.
stan495 commented 2026-11-25 07:00:42 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by stan495 on 2026-11-25T06:34:52Z.

Review: APPROVED


Verified head b7137699 on Windows x64 (dev preset, MSVC 19.44.35228.0, Python 3.12):

  • cmake --build --preset dev --target cpu_fuzz_x87 cpu_fuzz_x87_lifted cpu_fuzz_x87_lifted_o2 cpu_fuzz_x87_mutant -> succeeded
  • ctest --preset dev --no-tests=error -R '^cpu_aot_fuzz_x87$' -V -> 1/1 passed (area=x87 seed=0x8087 functions=40 inputs=313 comparisons=25040 default and /O2 matched, mutant subr_as_sub: 675/12520 mismatches in 7/40 functions, 4 refused controls checked)

Verdict: Approved at b7137699.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6052913280 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1667#pullrequestreview-6052913280). Originally posted by [stan495](https://github.com/stan495) on 2026-11-25T06:34:52Z. **Review:** APPROVED --- Verified head `b7137699` on Windows x64 (`dev` preset, MSVC `19.44.35228.0`, Python 3.12): - `cmake --build --preset dev --target cpu_fuzz_x87 cpu_fuzz_x87_lifted cpu_fuzz_x87_lifted_o2 cpu_fuzz_x87_mutant` -> succeeded - `ctest --preset dev --no-tests=error -R '^cpu_aot_fuzz_x87$' -V` -> 1/1 passed (`area=x87 seed=0x8087 functions=40 inputs=313 comparisons=25040 default and /O2 matched`, `mutant subr_as_sub: 675/12520 mismatches in 7/40 functions`, 4 refused controls checked) Verdict: Approved at `b7137699`.
upstream-sync closed this pull request 2026-11-25 19:03:24 +00:00
tedin7 commented 2026-11-25 19:03:24 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T18:57:39Z.

Review: COMMENTED


Review of the PR change at 7840b6c8 (own diff against origin/main). The branch was then updated with main (a plain merge, no change to the PR's own files), and the Windows run below is on that updated head.

What I checked

  • tools/fuzz_cpu.py: new --area x87 adapter and generator. Stack depth is tracked, push depth stays at 8 or less, the stack is empty at RET, PF is read only after FCOMI/SAHF, C1 and exception flags are never read. This matches the documented x87 profile.
  • Four refusal controls (overflow, underflow, live value at return, FINCSTP) each need their own reason string. The --mutant (subr_as_sub) fails unless it differs from native, so the test guards the FSUBR/FSUBRP lowering.
  • CMakeLists.txt: the block mirrors cpu_aot_fuzz_loops (seed/count cache vars, emit/translate custom commands, /O2 build, 60 s timeout). DEPENDS includes ffx_version_query.py, x87_lower.py, x87_soft.h, so edits to the lowering rebuild the test.
  • docs/experiments.md: the new paragraph is consistent with the code. Other areas are unchanged: emit --area loops output is byte-identical to origin/main.
  • No other open or merged PR covers an x87 fuzz area. #1784 adds bit-operation generators in the same files, so a small textual conflict is possible in whichever lands second, but the slices differ.

Commands run (Linux)

  • python3 -I -m py_compile tools/fuzz_cpu.py: ok
  • python3 tests/docs_links_check.py: 19 files, 471 links, ok
  • python3 tests/bidi_controls_check.py: ok
  • git diff --check origin/main...HEAD: clean
  • fuzz_cpu.py emit 0x8087 40 ... --area x87 twice: identical output, 44 PROC entries
  • emit --area loops vs origin/main: identical

The test itself needs MSVC/ML64, so the real check is the Windows run on the head (dev and release); the receipt follows in a separate comment. No blocking findings.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6063284897 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1667#pullrequestreview-6063284897). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T18:57:39Z. **Review:** COMMENTED --- Review of the PR change at 7840b6c8 (own diff against origin/main). The branch was then updated with main (a plain merge, no change to the PR's own files), and the Windows run below is on that updated head. What I checked - `tools/fuzz_cpu.py`: new `--area x87` adapter and generator. Stack depth is tracked, push depth stays at 8 or less, the stack is empty at `RET`, PF is read only after FCOMI/SAHF, C1 and exception flags are never read. This matches the documented x87 profile. - Four refusal controls (overflow, underflow, live value at return, FINCSTP) each need their own reason string. The `--mutant` (`subr_as_sub`) fails unless it differs from native, so the test guards the FSUBR/FSUBRP lowering. - `CMakeLists.txt`: the block mirrors `cpu_aot_fuzz_loops` (seed/count cache vars, `emit`/`translate` custom commands, `/O2` build, 60 s timeout). `DEPENDS` includes `ffx_version_query.py`, `x87_lower.py`, `x87_soft.h`, so edits to the lowering rebuild the test. - `docs/experiments.md`: the new paragraph is consistent with the code. Other areas are unchanged: `emit --area loops` output is byte-identical to origin/main. - No other open or merged PR covers an x87 fuzz area. #1784 adds bit-operation generators in the same files, so a small textual conflict is possible in whichever lands second, but the slices differ. Commands run (Linux) - `python3 -I -m py_compile tools/fuzz_cpu.py`: ok - `python3 tests/docs_links_check.py`: 19 files, 471 links, ok - `python3 tests/bidi_controls_check.py`: ok - `git diff --check origin/main...HEAD`: clean - `fuzz_cpu.py emit 0x8087 40 ... --area x87` twice: identical output, 44 PROC entries - `emit --area loops` vs origin/main: identical The test itself needs MSVC/ML64, so the real check is the Windows run on the head (dev and release); the receipt follows in a separate comment. No blocking findings. AI-assisted; commands listed were executed locally.
tedin7 commented 2026-11-25 19:04:18 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T19:01:54Z.


Win2025 WARP receipt for head 6d332122 after updating with main.

Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit 6d3321227d59b0123b71852af114749206590301:

  • Debug (--preset dev):
    • Build (cmake --build --preset dev --target cpu_fuzz cpu_fuzz_calls cpu_fuzz_calls_lifted cpu_fuzz_calls_mutant cpu_fuzz_chains cpu_fuzz_chains_lifted cpu_fuzz_chains_mutant cpu_fuzz_frames cpu_fuzz_frames_lifted cpu_fuzz_frames_mutant cpu_fuzz_lifted cpu_fuzz_loops cpu_fuzz_loops_lifted cpu_fuzz_loops_mutant cpu_fuzz_rsp cpu_fuzz_rsp_lifted cpu_fuzz_rsp_mutant cpu_fuzz_scalar_fp cpu_fuzz_scalar_fp_lifted cpu_fuzz_scalar_fp_mutant cpu_fuzz_switches cpu_fuzz_switches_lifted cpu_fuzz_switches_mutant cpu_fuzz_x87 cpu_fuzz_x87_lifted cpu_fuzz_x87_mutant cpu_fuzz_calls_lifted_o2 cpu_fuzz_chains_lifted_o2 cpu_fuzz_frames_lifted_o2 cpu_fuzz_lifted_o2 cpu_fuzz_loops_lifted_o2 cpu_fuzz_rsp_lifted_o2 cpu_fuzz_scalar_fp_lifted_o2 cpu_fuzz_switches_lifted_o2 cpu_fuzz_x87_lifted_o2 -- -j 2): 23.04s (configure 3.97s)
    • Test (ctest --preset dev -R '^cpu_aot_fuzz' --parallel 2 --no-tests=error --output-on-failure): 9/9 passed (7.84s: cpu_aot_fuzz_frames 0.81s, cpu_aot_fuzz_smoke 1.15s, cpu_aot_fuzz_chains 0.85s, cpu_aot_fuzz_calls 1.51s, cpu_aot_fuzz_switches 2.03s, cpu_aot_fuzz_scalar_fp 2.80s, cpu_aot_fuzz_rsp 2.02s, cpu_aot_fuzz_loops 1.12s, cpu_aot_fuzz_x87 1.57s)
  • Release /O2 (--preset release):
    • Build (cmake --build --preset release --target cpu_fuzz cpu_fuzz_calls cpu_fuzz_calls_lifted cpu_fuzz_calls_mutant cpu_fuzz_chains cpu_fuzz_chains_lifted cpu_fuzz_chains_mutant cpu_fuzz_frames cpu_fuzz_frames_lifted cpu_fuzz_frames_mutant cpu_fuzz_lifted cpu_fuzz_loops cpu_fuzz_loops_lifted cpu_fuzz_loops_mutant cpu_fuzz_rsp cpu_fuzz_rsp_lifted cpu_fuzz_rsp_mutant cpu_fuzz_scalar_fp cpu_fuzz_scalar_fp_lifted cpu_fuzz_scalar_fp_mutant cpu_fuzz_switches cpu_fuzz_switches_lifted cpu_fuzz_switches_mutant cpu_fuzz_x87 cpu_fuzz_x87_lifted cpu_fuzz_x87_mutant cpu_fuzz_calls_lifted_o2 cpu_fuzz_chains_lifted_o2 cpu_fuzz_frames_lifted_o2 cpu_fuzz_lifted_o2 cpu_fuzz_loops_lifted_o2 cpu_fuzz_rsp_lifted_o2 cpu_fuzz_scalar_fp_lifted_o2 cpu_fuzz_switches_lifted_o2 cpu_fuzz_x87_lifted_o2 -- -j 2): 23.82s (configure 3.53s)
    • Test (ctest --preset release -R '^cpu_aot_fuzz' --parallel 2 --no-tests=error --output-on-failure): 9/9 passed (6.36s: cpu_aot_fuzz_frames 0.71s, cpu_aot_fuzz_smoke 0.93s, cpu_aot_fuzz_chains 0.67s, cpu_aot_fuzz_calls 1.21s, cpu_aot_fuzz_switches 1.85s, cpu_aot_fuzz_scalar_fp 2.28s, cpu_aot_fuzz_rsp 1.43s, cpu_aot_fuzz_loops 0.93s, cpu_aot_fuzz_x87 1.25s)
  • sccache: 0/85 hits; wall 70.0s

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7171727238 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1667#issuecomment-7171727238). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T19:01:54Z. --- Win2025 WARP receipt for head 6d332122 after updating with main. Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit `6d3321227d59b0123b71852af114749206590301`: - **Debug (`--preset dev`)**: - Build (`cmake --build --preset dev --target cpu_fuzz cpu_fuzz_calls cpu_fuzz_calls_lifted cpu_fuzz_calls_mutant cpu_fuzz_chains cpu_fuzz_chains_lifted cpu_fuzz_chains_mutant cpu_fuzz_frames cpu_fuzz_frames_lifted cpu_fuzz_frames_mutant cpu_fuzz_lifted cpu_fuzz_loops cpu_fuzz_loops_lifted cpu_fuzz_loops_mutant cpu_fuzz_rsp cpu_fuzz_rsp_lifted cpu_fuzz_rsp_mutant cpu_fuzz_scalar_fp cpu_fuzz_scalar_fp_lifted cpu_fuzz_scalar_fp_mutant cpu_fuzz_switches cpu_fuzz_switches_lifted cpu_fuzz_switches_mutant cpu_fuzz_x87 cpu_fuzz_x87_lifted cpu_fuzz_x87_mutant cpu_fuzz_calls_lifted_o2 cpu_fuzz_chains_lifted_o2 cpu_fuzz_frames_lifted_o2 cpu_fuzz_lifted_o2 cpu_fuzz_loops_lifted_o2 cpu_fuzz_rsp_lifted_o2 cpu_fuzz_scalar_fp_lifted_o2 cpu_fuzz_switches_lifted_o2 cpu_fuzz_x87_lifted_o2 -- -j 2`): `23.04s` (configure `3.97s`) - Test (`ctest --preset dev -R '^cpu_aot_fuzz' --parallel 2 --no-tests=error --output-on-failure`): **9/9 passed** (`7.84s`: `cpu_aot_fuzz_frames` `0.81s`, `cpu_aot_fuzz_smoke` `1.15s`, `cpu_aot_fuzz_chains` `0.85s`, `cpu_aot_fuzz_calls` `1.51s`, `cpu_aot_fuzz_switches` `2.03s`, `cpu_aot_fuzz_scalar_fp` `2.80s`, `cpu_aot_fuzz_rsp` `2.02s`, `cpu_aot_fuzz_loops` `1.12s`, `cpu_aot_fuzz_x87` `1.57s`) - **Release `/O2` (`--preset release`)**: - Build (`cmake --build --preset release --target cpu_fuzz cpu_fuzz_calls cpu_fuzz_calls_lifted cpu_fuzz_calls_mutant cpu_fuzz_chains cpu_fuzz_chains_lifted cpu_fuzz_chains_mutant cpu_fuzz_frames cpu_fuzz_frames_lifted cpu_fuzz_frames_mutant cpu_fuzz_lifted cpu_fuzz_loops cpu_fuzz_loops_lifted cpu_fuzz_loops_mutant cpu_fuzz_rsp cpu_fuzz_rsp_lifted cpu_fuzz_rsp_mutant cpu_fuzz_scalar_fp cpu_fuzz_scalar_fp_lifted cpu_fuzz_scalar_fp_mutant cpu_fuzz_switches cpu_fuzz_switches_lifted cpu_fuzz_switches_mutant cpu_fuzz_x87 cpu_fuzz_x87_lifted cpu_fuzz_x87_mutant cpu_fuzz_calls_lifted_o2 cpu_fuzz_chains_lifted_o2 cpu_fuzz_frames_lifted_o2 cpu_fuzz_lifted_o2 cpu_fuzz_loops_lifted_o2 cpu_fuzz_rsp_lifted_o2 cpu_fuzz_scalar_fp_lifted_o2 cpu_fuzz_switches_lifted_o2 cpu_fuzz_x87_lifted_o2 -- -j 2`): `23.82s` (configure `3.53s`) - Test (`ctest --preset release -R '^cpu_aot_fuzz' --parallel 2 --no-tests=error --output-on-failure`): **9/9 passed** (`6.36s`: `cpu_aot_fuzz_frames` `0.71s`, `cpu_aot_fuzz_smoke` `0.93s`, `cpu_aot_fuzz_chains` `0.67s`, `cpu_aot_fuzz_calls` `1.21s`, `cpu_aot_fuzz_switches` `1.85s`, `cpu_aot_fuzz_scalar_fp` `2.28s`, `cpu_aot_fuzz_rsp` `1.43s`, `cpu_aot_fuzz_loops` `0.93s`, `cpu_aot_fuzz_x87` `1.25s`) - `sccache`: 0/85 hits; wall `70.0s` AI-assisted; commands listed were executed locally.
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
R0Y00/Xbox2Windows!1660
No description provided.