cpu: cover FSTSW AX in the x87 examine fixture #1854

Merged
Asimmimx merged 1 commit from upstream-pr/1861 into main 2026-11-24 21:27:42 +00:00
Asimmimx commented 2026-11-24 19:43:01 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Asimmimx on 2026-11-24T19:43:01Z.


Change

fstsw is listed in docs/coverage/x64_zen2.tsv, but no MASM fixture spells it, so tools/form_coverage.py reports it as uncovered. This adds an export that does to the cpu_aot_x87_examine fixture. Refs #406.

ML64 assembles fstsw ax as wait (9B) followed by fnstsw ax (DF E0), and iced decodes those bytes as two instructions. The profile already accepts wait and fnstsw ax. Per the SDM, wait leaves C0 to C3 undefined, so after fstsw ax only TOP is known. A reader of C0, C2 or C3 is rejected, but and ah, 38h (TOP only) is accepted. The translator is unchanged.

  • tests/cpu/x87_examine.asm / .def: a new eighth export, fstsw_top, reads fstsw ax at depth 0, at depth 1 after fld tbyte ptr [rcx], and at depth 2 after fld1 and ftst. Each read masks AH to TOP and stores it. The export then stores the input m80. It follows the layout of ffreep_top and ffree_empty, and the generated source shows ; // wait before each of the three fnstsw ax statements.
  • tests/cpu/x87_examine.py: adds the export to the model (TOP 0, 7, 6, then the input) and its cases (34, one per input value). It adds a ninth control, fstsw, which makes each fnstsw ax that follows a wait read TOP 0. It also adds a rejection case: the accepted ftst reader sequence with a wait in front of fnstsw ax must be rejected with "not known".
  • CMakeLists.txt: adds fstsw to the x87_examine control variant list.
  • docs/experiments.md: one paragraph after the ffree_empty paragraph.

FSTSW m16 (9B DD /7) is not covered here, because the profile does not accept it anywhere. The wait makes C0 to C3 unknown even right after fninit, and fnstsw m16 needs every bit except TOP to be known. Before writing the fixture I checked this directly with lower():

  • db e3 9b dd 3a c3 in the checked entry is rejected: "fnstsw [rdx] at 0x1003 stores status-word bits 0xc7ff, which are not known on every path from the entry".
  • db e3 dd 3a c3 is accepted.

The existing cpu_aot_x87_fldcw rejection case "fnstsw m16 after fninit and wait (fstsw m16)" already covers this. The coverage row is the mnemonic fstsw, so FSTSW AX is enough to cover it.

Overlap: #1663 touches CMakeLists.txt (hunk near line 4568) and docs/experiments.md (near line 1621). This PR changes lines 4745 and 4747 and adds a paragraph after line 1747, so the textual merge should be clean. #1663 does not touch the x87_examine files.

Verification

Base 106555ab (origin/main), commit 6ff0afbb. Windows 11 Pro 26300.9974, AMD Ryzen 5 5500, MSVC 19.51.36260, ML64 14.51.36260.0, Ninja.

cmake --preset dev -DINTAKE_PYTHON=<repo>/out/pe-env/Scripts/python.exe
cmake --build --preset dev -j 4 --target cpu_x87_harness cpu_x87_examine cpu_x87_examine_lifted cpu_x87_examine_normal cpu_x87_examine_unsigned cpu_x87_examine_positive cpu_x87_examine_legacy cpu_x87_examine_ffreep cpu_x87_examine_fftop cpu_x87_examine_ffree cpu_x87_examine_freetop cpu_x87_examine_fstsw
ctest --preset dev --no-tests=error -R '^cpu_aot_x87_examine$' -V --output-junit <scratch>/examine.xml
918 cases over 8 exports matched the model in native and translated DLLs; FXAM classes ['denormal', 'infinity', 'nan', 'normal', 'unsupported', 'zero'] and empty; each export returned with control 0x027f and an empty stack
control normal: 5/918 mismatches
control unsigned: 136/918 mismatches
control positive: 7/918 mismatches
control legacy: 34/918 mismatches
control ffreep: 33/918 mismatches
control fftop: 68/918 mismatches
control ffree: 34/918 mismatches
control freetop: 102/918 mismatches
control fstsw: 34/918 mismatches
accepted 1 and rejected 16 sequences: ...; fstsw ax after ftst then a reader of C0
100% tests passed, 0 tests failed out of 1

Before this change the check had 884 cases over 7 exports. fftop and freetop now also hit the depth-2 and depth-1 reads of fstsw_top, so their counts rose from 34 and 68 to 68 and 102. The new fstsw control changes only fstsw_top, because no other export has fnstsw ax right after a wait.

Coverage effect, from the JUnit file of that run:

python -B tools/form_coverage.py <scratch>/examine.xml --gaps x64_zen2
x64 (Zen 2 user-mode mnemonics): 25 of 948 covered (890 appear in fixtures; 0 held back by skips)

fstsw is no longer in the gap list. masm_mnemonics(x87_examine.asm) now includes fstsw, and on main no tests/cpu/*.asm spells it.

Pure-Python checks:

python -B tests/form_coverage_check.py    -> form coverage checks passed
python -B tests/docs_links_check.py       -> Self-test passed. Checked 18 Markdown files and 370 links.
python -B tests/bidi_controls_check.py    -> Self-test passed. Checked 1324 tracked source, script and build/CI files: no bidirectional controls.

No _hardware tests were run, and none are affected.

Evidence and follow-up

The fixture is hand-written MASM in this repository (MIT). The model takes TOP from the depth (8 minus the depth, modulo 8, since a function enters at TOP 0) and does not depend on the translation. The native DLL ran on the Ryzen 5 5500 above. Negative controls: the new fstsw mutation (34 mismatches, one per fstsw_top case), the existing fftop and freetop mutations, which now also cover this export, and the new rejection case, which shows that fstsw ax exposes no condition bit after ftst.

This covers the fstsw mnemonic through FSTSW AX only. It does not cover every operand form. Covering FSTSW m16 would need a status-word model in which wait keeps C0 to C3, and the docs say this deliberately follows the SDM rather than iced. That would be a separate translator change.

Checklist

  • This pull request covers one reviewable behavior.
  • I included the exact command and result for every check I ran.
  • I considered a negative control or failure case for a new fixture.
  • I updated README/docs when a capability or build requirement changed.
  • I did not include game files, dumps, distribution links or secrets.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6589967800 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1861). Originally posted by [Asimmimx](https://github.com/Asimmimx) on 2026-11-24T19:43:01Z. --- ## Change `fstsw` is listed in `docs/coverage/x64_zen2.tsv`, but no MASM fixture spells it, so `tools/form_coverage.py` reports it as uncovered. This adds an export that does to the `cpu_aot_x87_examine` fixture. Refs #406. ML64 assembles `fstsw ax` as `wait` (9B) followed by `fnstsw ax` (DF E0), and iced decodes those bytes as two instructions. The profile already accepts `wait` and `fnstsw ax`. Per the SDM, `wait` leaves C0 to C3 undefined, so after `fstsw ax` only TOP is known. A reader of C0, C2 or C3 is rejected, but `and ah, 38h` (TOP only) is accepted. The translator is unchanged. - `tests/cpu/x87_examine.asm` / `.def`: a new eighth export, `fstsw_top`, reads `fstsw ax` at depth 0, at depth 1 after `fld tbyte ptr [rcx]`, and at depth 2 after `fld1` and `ftst`. Each read masks AH to TOP and stores it. The export then stores the input m80. It follows the layout of `ffreep_top` and `ffree_empty`, and the generated source shows `; // wait` before each of the three `fnstsw ax` statements. - `tests/cpu/x87_examine.py`: adds the export to the model (TOP 0, 7, 6, then the input) and its cases (34, one per input value). It adds a ninth control, `fstsw`, which makes each `fnstsw ax` that follows a `wait` read TOP 0. It also adds a rejection case: the accepted `ftst` reader sequence with a `wait` in front of `fnstsw ax` must be rejected with "not known". - `CMakeLists.txt`: adds `fstsw` to the `x87_examine` control variant list. - `docs/experiments.md`: one paragraph after the `ffree_empty` paragraph. FSTSW m16 (`9B DD /7`) is not covered here, because the profile does not accept it anywhere. The `wait` makes C0 to C3 unknown even right after `fninit`, and `fnstsw` m16 needs every bit except TOP to be known. Before writing the fixture I checked this directly with `lower()`: - `db e3 9b dd 3a c3` in the checked entry is rejected: "fnstsw [rdx] at 0x1003 stores status-word bits 0xc7ff, which are not known on every path from the entry". - `db e3 dd 3a c3` is accepted. The existing `cpu_aot_x87_fldcw` rejection case "fnstsw m16 after fninit and wait (fstsw m16)" already covers this. The coverage row is the mnemonic `fstsw`, so FSTSW AX is enough to cover it. Overlap: #1663 touches `CMakeLists.txt` (hunk near line 4568) and `docs/experiments.md` (near line 1621). This PR changes lines 4745 and 4747 and adds a paragraph after line 1747, so the textual merge should be clean. #1663 does not touch the `x87_examine` files. ## Verification Base `106555ab` (origin/main), commit `6ff0afbb`. Windows 11 Pro 26300.9974, AMD Ryzen 5 5500, MSVC 19.51.36260, ML64 14.51.36260.0, Ninja. ```powershell cmake --preset dev -DINTAKE_PYTHON=<repo>/out/pe-env/Scripts/python.exe cmake --build --preset dev -j 4 --target cpu_x87_harness cpu_x87_examine cpu_x87_examine_lifted cpu_x87_examine_normal cpu_x87_examine_unsigned cpu_x87_examine_positive cpu_x87_examine_legacy cpu_x87_examine_ffreep cpu_x87_examine_fftop cpu_x87_examine_ffree cpu_x87_examine_freetop cpu_x87_examine_fstsw ctest --preset dev --no-tests=error -R '^cpu_aot_x87_examine$' -V --output-junit <scratch>/examine.xml ``` ```text 918 cases over 8 exports matched the model in native and translated DLLs; FXAM classes ['denormal', 'infinity', 'nan', 'normal', 'unsupported', 'zero'] and empty; each export returned with control 0x027f and an empty stack control normal: 5/918 mismatches control unsigned: 136/918 mismatches control positive: 7/918 mismatches control legacy: 34/918 mismatches control ffreep: 33/918 mismatches control fftop: 68/918 mismatches control ffree: 34/918 mismatches control freetop: 102/918 mismatches control fstsw: 34/918 mismatches accepted 1 and rejected 16 sequences: ...; fstsw ax after ftst then a reader of C0 100% tests passed, 0 tests failed out of 1 ``` Before this change the check had 884 cases over 7 exports. `fftop` and `freetop` now also hit the depth-2 and depth-1 reads of `fstsw_top`, so their counts rose from 34 and 68 to 68 and 102. The new `fstsw` control changes only `fstsw_top`, because no other export has `fnstsw ax` right after a `wait`. Coverage effect, from the JUnit file of that run: ```text python -B tools/form_coverage.py <scratch>/examine.xml --gaps x64_zen2 x64 (Zen 2 user-mode mnemonics): 25 of 948 covered (890 appear in fixtures; 0 held back by skips) ``` `fstsw` is no longer in the gap list. `masm_mnemonics(x87_examine.asm)` now includes `fstsw`, and on `main` no `tests/cpu/*.asm` spells it. Pure-Python checks: ```text python -B tests/form_coverage_check.py -> form coverage checks passed python -B tests/docs_links_check.py -> Self-test passed. Checked 18 Markdown files and 370 links. python -B tests/bidi_controls_check.py -> Self-test passed. Checked 1324 tracked source, script and build/CI files: no bidirectional controls. ``` No `_hardware` tests were run, and none are affected. ## Evidence and follow-up The fixture is hand-written MASM in this repository (MIT). The model takes TOP from the depth (8 minus the depth, modulo 8, since a function enters at TOP 0) and does not depend on the translation. The native DLL ran on the Ryzen 5 5500 above. Negative controls: the new `fstsw` mutation (34 mismatches, one per `fstsw_top` case), the existing `fftop` and `freetop` mutations, which now also cover this export, and the new rejection case, which shows that `fstsw ax` exposes no condition bit after `ftst`. This covers the `fstsw` mnemonic through FSTSW AX only. It does not cover every operand form. Covering FSTSW m16 would need a status-word model in which `wait` keeps C0 to C3, and the docs say this deliberately follows the SDM rather than iced. That would be a separate translator change. ## Checklist - [x] This pull request covers one reviewable behavior. - [x] I included the exact command and result for every check I ran. - [x] I considered a negative control or failure case for a new fixture. - [x] I updated README/docs when a capability or build requirement changed. - [x] I did not include game files, dumps, distribution links or secrets. AI-assisted (Claude Code).
tedin7 commented 2026-11-24 20:01:07 +00:00 (Migrated from github.com)

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

Review: COMMENTED


Peer review of head 6ff0afbb5c28255395fce26e8f0a8e2d13ec639a (PRODUCTION_REVIEW_ONLY, technical comment only).

No P1 and no P2 found in the local (Linux) verification. The native-versus-translated comparison needs a Windows run, which I did not do.

What the change does: adds an eighth export fstsw_top to tests/cpu/x87_examine.asm, its model in reference(), a ninth control fstsw, and one new rejection case. I read all five files.

FSTSW AX analysis:

  • It assembles as WAIT (9B) then FNSTSW AX (DF E0). WAIT leaves C0 to C3 undefined, so only TOP is defined afterwards. The fixture masks AH with 0x38 (TOP is status bits 13..11, that is AH bits 5..3) so the undefined bits never reach the output. The expected bytes 0x00, 0x38, 0x30 are TOP 0, 7, 6 at depth 0, after fld, and after fld1 + ftst. This matches the model in reference().
  • The third read follows ftst, so the modelled status word still carries a comparison result there. The mask is what makes the fixture independent of it, which is the point of the case.
  • Stack discipline is correct: the fixture ends with fstp st(0) and fstp tbyte ptr [rdx+16], so the stack is empty and the return value is 0. mov byte ptr [rdx+n], ah needs no REX prefix.
  • I assembled the same instruction sequence (llvm-mc-19) and ran it through ffx_version_query.lower(..., x87=True). The lowered code reads TOP 0, 7 and 6 at the three fnstsw ax sites, each preceded by // wait. The fstsw control's pattern matches exactly those three sites in the lowered text, so the control changes something, as the script requires, and it cannot match the plain fnstsw of the other exports.
  • The existing fftop and freetop controls now also hit the new export; the PR text and comments say so. The CMake change adds the fstsw variant to the control list.

New rejection case: fld1; ftst; wait; fnstsw ax; test ah,1 must be rejected as "not known". It runs on Linux and passes. Mutation (tools/x87_lower.py _after, elif not (is_x87(i) or call) or op == M.WAIT:, so WAIT keeps C0 to C3 known): check_rejections fails with "translation accepted fstsw ax after ftst then a reader of C0" (rc=1). The tree was restored with git checkout -- ..

A second mutation of the AX-state tracking (dropping | TOP_BITS from the known bits of AX after FNSTSW AX) is not caught by the rejection cases. That is expected, since the value comparison covers it, and it is only exercised on Windows.

For the Windows run (not done by me):

  • CTest target: cpu_aot_x87_examine (regex ^cpu_aot_x87_examine$), built from cpu_x87_examine, cpu_x87_harness and the controls cpu_x87_examine_{lifted,normal,unsigned,positive,legacy,ffreep,fftop,ffree,freetop,fstsw}.
  • A useful independent mutation: in tools/x87_lower.py, stack_top = (8 - depth) & 7 changed to (7 - depth) & 7 in the FNSTSW emission. The check should then mismatch on fstsw_top and on the other exports that read TOP.
  • The doc quotes native results on an AMD Ryzen 5 5500; I cannot confirm those numbers or the mismatch counts (34, 68, 102) here.

Commands run (Linux):

  • git diff --check <merge-base>...HEAD: clean
  • tests/docs_links_check.py: pass
  • tests/bidi_controls_check.py: pass
  • check_rejections() from tests/cpu/x87_examine.py: pass (accepted 1, rejected 16)
  • llvm-mc-19 assembly of the fixture body, lowering through ffx_version_query.lower, and the control's regex against the result (3 matches)
  • the two mutations above
  • The merge against current main has no content conflicts (git merge-tree).

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6046269424 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1861#pullrequestreview-6046269424). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-24T19:50:55Z. **Review:** COMMENTED --- Peer review of head `6ff0afbb5c28255395fce26e8f0a8e2d13ec639a` (PRODUCTION_REVIEW_ONLY, technical comment only). **No P1 and no P2 found in the local (Linux) verification. The native-versus-translated comparison needs a Windows run, which I did not do.** What the change does: adds an eighth export `fstsw_top` to tests/cpu/x87_examine.asm, its model in `reference()`, a ninth control `fstsw`, and one new rejection case. I read all five files. `FSTSW AX` analysis: - It assembles as WAIT (9B) then FNSTSW AX (DF E0). WAIT leaves C0 to C3 undefined, so only TOP is defined afterwards. The fixture masks AH with 0x38 (TOP is status bits 13..11, that is AH bits 5..3) so the undefined bits never reach the output. The expected bytes 0x00, 0x38, 0x30 are TOP 0, 7, 6 at depth 0, after `fld`, and after `fld1` + `ftst`. This matches the model in `reference()`. - The third read follows `ftst`, so the modelled status word still carries a comparison result there. The mask is what makes the fixture independent of it, which is the point of the case. - Stack discipline is correct: the fixture ends with `fstp st(0)` and `fstp tbyte ptr [rdx+16]`, so the stack is empty and the return value is 0. `mov byte ptr [rdx+n], ah` needs no REX prefix. - I assembled the same instruction sequence (llvm-mc-19) and ran it through `ffx_version_query.lower(..., x87=True)`. The lowered code reads TOP 0, 7 and 6 at the three `fnstsw ax` sites, each preceded by `// wait`. The `fstsw` control's pattern matches exactly those three sites in the lowered text, so the control changes something, as the script requires, and it cannot match the plain `fnstsw` of the other exports. - The existing `fftop` and `freetop` controls now also hit the new export; the PR text and comments say so. The CMake change adds the `fstsw` variant to the control list. New rejection case: `fld1; ftst; wait; fnstsw ax; test ah,1` must be rejected as "not known". It runs on Linux and passes. Mutation (tools/x87_lower.py `_after`, `elif not (is_x87(i) or call) or op == M.WAIT:`, so WAIT keeps C0 to C3 known): `check_rejections` fails with "translation accepted fstsw ax after ftst then a reader of C0" (rc=1). The tree was restored with `git checkout -- .`. A second mutation of the AX-state tracking (dropping `| TOP_BITS` from the known bits of AX after FNSTSW AX) is not caught by the rejection cases. That is expected, since the value comparison covers it, and it is only exercised on Windows. For the Windows run (not done by me): - CTest target: `cpu_aot_x87_examine` (regex `^cpu_aot_x87_examine$`), built from `cpu_x87_examine`, `cpu_x87_harness` and the controls `cpu_x87_examine_{lifted,normal,unsigned,positive,legacy,ffreep,fftop,ffree,freetop,fstsw}`. - A useful independent mutation: in tools/x87_lower.py, `stack_top = (8 - depth) & 7` changed to `(7 - depth) & 7` in the FNSTSW emission. The check should then mismatch on `fstsw_top` and on the other exports that read TOP. - The doc quotes native results on an AMD Ryzen 5 5500; I cannot confirm those numbers or the mismatch counts (34, 68, 102) here. Commands run (Linux): - `git diff --check <merge-base>...HEAD`: clean - `tests/docs_links_check.py`: pass - `tests/bidi_controls_check.py`: pass - `check_rejections()` from tests/cpu/x87_examine.py: pass (accepted 1, rejected 16) - llvm-mc-19 assembly of the fixture body, lowering through `ffx_version_query.lower`, and the control's regex against the result (3 matches) - the two mutations above - The merge against current `main` has no content conflicts (`git merge-tree`). AI-assisted; commands listed were executed locally.
ChazY11 commented 2026-11-24 21:27:40 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by ChazY11 on 2026-11-24T21:12:10Z.


Built it and ran it — after three of the variant DLLs turned out stale

At the PR head, Windows 11 build 26300.9974, MSVC 19.44:

cmake --preset dev
cmake --build --preset dev --target cpu_x87_examine cpu_x87_examine_{lifted,normal,unsigned,positive,legacy} \
                                 cpu_x87_examine_{ffreep,fftop,ffree,freetop,fstsw} cpu_x87_harness
ctest --preset dev --no-tests=error -R '^cpu_aot_x87_examine$'
1/1 Test #642: cpu_aot_x87_examine ..............   Passed 0.41 sec
100% tests passed, 0 tests failed out of 1

A warning for anyone repeating this, because it cost me two red runs that were mine: the check takes eleven DLLs, and if
only some variants are rebuilt the rest keep their old exports. Mine failed with

AttributeError: function 'fstsw_top' not found

and probing the exports showed cpu_x87_examine_fftop, _ffree and _freetop still at the pre-checkout timestamp (04:11 vs
05:09). Building those three turned the run green with no change to the PR. A partial build here reads exactly like a broken
fixture.

What the new export pins

fstsw_top reads the status at depth 0, 1 and 2 and masks AH to TOP before storing, so the fixture checks only the part of the
status word wait leaves defined. Two independent controls back that up:

  • fftop rewrites the depth-2 read to x87_sw | 0x2800 (TOP 5 instead of 6) — its comment says the literal also matches
    fstsw_top's depth-2 read, so both exports mismatch.
  • freetop rewrites the depth-1 read to TOP 0 — the comment says it matches the depth-1 reads of ffreep_top and
    fstsw_top, so all three mismatch.

That is the right construction: one mutated literal invalidates several exports at once, so the fixture proves the model is
compared per export rather than a single scalar being right by luck.

The fstsw control is the subtler one — it makes every fnstsw ax that follows a wait read TOP 0, which is what a translator
would produce if it treated the pair as fnstsw alone. Having that as a required mismatch is what keeps the wait in the
picture at all.

Verdict

Reviewed. The fixture is source-built, the export list and .def agree, the model covers three depths plus the control, and the
whole check passes here. No objections.

Notes

  • AI-assisted review.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7144615145 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1861#issuecomment-7144615145). Originally posted by [ChazY11](https://github.com/ChazY11) on 2026-11-24T21:12:10Z. --- ## Built it and ran it — after three of the variant DLLs turned out stale At the PR head, Windows 11 build 26300.9974, MSVC 19.44: ```powershell cmake --preset dev cmake --build --preset dev --target cpu_x87_examine cpu_x87_examine_{lifted,normal,unsigned,positive,legacy} \ cpu_x87_examine_{ffreep,fftop,ffree,freetop,fstsw} cpu_x87_harness ctest --preset dev --no-tests=error -R '^cpu_aot_x87_examine$' 1/1 Test #642: cpu_aot_x87_examine .............. Passed 0.41 sec 100% tests passed, 0 tests failed out of 1 ``` **A warning for anyone repeating this**, because it cost me two red runs that were mine: the check takes eleven DLLs, and if only some variants are rebuilt the rest keep their old exports. Mine failed with ```text AttributeError: function 'fstsw_top' not found ``` and probing the exports showed `cpu_x87_examine_fftop`, `_ffree` and `_freetop` still at the pre-checkout timestamp (04:11 vs 05:09). Building those three turned the run green with no change to the PR. A partial build here reads exactly like a broken fixture. ## What the new export pins `fstsw_top` reads the status at depth 0, 1 and 2 and masks AH to TOP before storing, so the fixture checks only the part of the status word `wait` leaves defined. Two independent controls back that up: - `fftop` rewrites the depth-2 read to `x87_sw | 0x2800` (TOP 5 instead of 6) — its comment says the literal also matches `fstsw_top`'s depth-2 read, so both exports mismatch. - `freetop` rewrites the depth-1 read to TOP 0 — the comment says it matches the depth-1 reads of `ffreep_top` **and** `fstsw_top`, so all three mismatch. That is the right construction: one mutated literal invalidates several exports at once, so the fixture proves the model is compared per export rather than a single scalar being right by luck. The `fstsw` control is the subtler one — it makes every `fnstsw ax` that follows a `wait` read TOP 0, which is what a translator would produce if it treated the pair as `fnstsw` alone. Having that as a *required mismatch* is what keeps the `wait` in the picture at all. ## Verdict Reviewed. The fixture is source-built, the export list and `.def` agree, the model covers three depths plus the control, and the whole check passes here. No objections. ## Notes - AI-assisted review.
upstream-sync closed this pull request 2026-11-24 22:00:47 +00:00
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!1854
No description provided.