cpu: lower register-indexed memory bit tests #2024
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2031"
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 louisdibiasi on 2026-11-24T23:29:14Z.
Change
Lower the register-offset memory forms of BT, BTS, BTR and BTC in
cpu_switch_aot. A signed bit offset selects a word before or after the memory base; CF comes from the original bit. Frame-backed, image-relative and 32-bit-address forms remain refused because the existing address proofs only cover the nominal access. LOCK remains refused.Refs #446; follows the bit-string follow-up described in #1209. Open #1784 tests the current refusal in its independent fuzz generator, so that control will need coordination if these changes meet.
Verification
Windows x64, MSVC 19.44.35230.0 and ML64 14.44.35230.0. Tested commit
47fa55b5based on upstream8ec25533. The previously reviewed patch was rebased unchanged; its stable patch ID remained9667c23d.The focused tests passed 2/2 in each configuration. The new original MASM fixture compares 648 cases across native, translated and Python byte-reference results, covering positive and negative word boundaries, unaligned memory, high register bits and an address/index alias. It checks frame, image, address-size and undefined-register refusals and compares access violations for an inaccessible read and read-only writes. These fault checks do not verify fault address, ordering or guest exception registers.
The PR preset build completed; 26 tests passed and four MinLOD WARP tests reported capability skips.
tests/docs_links_check.pyandtests/bidi_controls_check.pypassed after the rebase;git diff --check upstream/main...HEADpassed.A separately compiled
/O2mutant set the computed word index to zero. The fixture rejected it atbt16_string, offset -16 (native/reference CF 0, mutant CF 1). The fixture is source-built and the change does not establish game startup or native console execution.AI-assisted (Codex), including the implementation, fixture and review.