cpu: sync scalar float docs and tighten SETcc/CMOVcc controls #764
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/770"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by Ammmae0x on 2026-11-23T01:59:36Z.
Change
Follow-up to PR #753 (Refs #743, Refs #753) to tighten the
SETcc/CMOVccscalar float test controls and sync the corresponding documentation indocs/experiments.md:tests/cpu/scalar_float.asm:RAXwith123456789abcde5ah(non-zeroAL) insetcc_mixsoSETccbyte writes are verified to overwriteALon both true and false outcomes while preserving bits8..63.cmovgshl rax, 32/or rax, r9sequence incmovcc_mixso 32-bit zero-extension of bits63..32(0xfedcba98->0on taken, preserved on not-taken) is directly observable in the return value.tests/cpu/scalar_float_check.py:cmovcc_mixknown_answers()for the direct 32-bit zero-extended return and pass a 64-bit value (0x12345678deadbeef) at[r8]to verify 32-bit load and upper-half zero-extension.docs/experiments.md:Scalar SSE and SSE2 leaf functionssection withSETcc/CMOVcc/NEGflag rules, 14 exports, 13,690 differential calls, 43 fixed answers, and 20 patched-instruction rejection controls, and removeSETcc and CMOVcc after a comparefromNot covered:.Verification
Verified on Windows (commit
65d27a1onmainfdd7158) in bothdev(Debug) andrelease(/O2) after loading.\tools\dev.ps1:cmake --build --preset dev --target cpu_float_original cpu_float_original_lifted cpu_float_swapped cpu_float_swapped_lifted-> passed (0errors,0warnings).ctest --preset dev --no-tests=error -R "^cpu_aot_scalar_float$" -V->1/1passed (43fixed results,13,690differential calls across14exports,20patched-instruction rejections,8signature rejections).cmake --build --preset release --target cpu_float_original cpu_float_original_lifted cpu_float_swapped cpu_float_swapped_lifted-> passed (0errors,0warnings).ctest --preset release --no-tests=error -R "^cpu_aot_scalar_float$" -V->1/1passed (43fixed results,13,690differential calls across14exports,20patched-instruction rejections,8signature rejections)..\out\pe-env\Scripts\python.exe -B tests/docs_links_check.py-> passed (13Markdown files,144links,0failed; self-test passed)..\out\pe-env\Scripts\python.exe -B tests/bidi_controls_check.py-> passed (626tracked files,0bidirectional controls; self-test passed)..\out\pe-env\Scripts\python.exe -B tests/form_coverage_check.py-> passed.Evidence and follow-up
All changes reuse the existing source-built
tests/cpu/scalar_float.asmfixture (assembled by ML64 and lifted viatools/cpu_sse_aot.py). Existing negative controls (20 patched-instruction rejections and 8 wrong-signature rejections) remain intact and passing, and the strengthenedsetcc_mix/cmovcc_mixcontrols directly catch unpreserved high bits or missing 32-bit zero-extension.Checklist
AI-assisted.