cpu: cover three repeated string-copy lowerings that no test observed #683
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/689"
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 Leyukaka on 2026-11-22T20:24:10Z.
Change
This closes three coverage gaps in the
REP MOVSlowering oftools/cpu_switch_aot.py. Each was a one-line mutation that passed everycpu_test onmain. Onlytests/cpu/switch_strings_check.pyand the counts indocs/experiments.mdchange; the translator does not.rep movsband RCX = 2^32 + 1 (must copy 3 bytes, then fault)memmovefor an 8-aligned forward overlapThe check now asserts that its storage base is even, so 257 is an odd address. The documented counts are updated to 38 exports, 18,192 comparisons and 84 access-violation comparisons, from this run.
Verification
On
66ddfad(branch on3b9bb1a), Windows 11 build 26300.9974, MSVC 14.44.35207, Python 3.14:296 of 297 pass.
bvh_differential_warpfailed once in that parallel run and passed twice when run alone (-R '^bvh_differential_warp$'); this PR does not touch it.tests/docs_links_check.pypasses.Each mutation was applied to
tools/cpu_switch_aot.pyone at a time, and allcpu_tests were run. Onmain(b5509fe, after #598 to #600), all of them passed for each mutation. On this branch, each failscpu_aot_switch_strings.Checklist
AI-assisted.