cpu: lower JNE after TEST in cpu_chained_aot #167
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/168"
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 Vonsek on 2026-11-21T17:54:05Z.
Change
Support
JNE_REL8_64andJNE_REL32_64afterTEST_RM64_R64intools/cpu_chained_aot.py.Previously,
cpu_chained_aotonly acceptedJE_REL8_64andJE_REL32_64followingTEST_RM64_R64. It now also lowersJNE_REL8_64andJNE_REL32_64using!= 0and invertedallocator_nulltracking on the taken and fallthrough paths, while continuing to reject other conditional branch opcodes afterTEST.Adds:
USE_JNEbuild variant (cpu_chained_jne/cpu_chained_jne_lifted) oftests/cpu/chained.asminCMakeLists.txt;JEandJNEfixtures intests/cpu/chained_check.py, plus a rejection control patchingJEtoJS(0x78);docs/experiments.mdunder Chained function ranges and early returns.Verification
Tested on Windows 11 x64, VS 2022 Build Tools 17.14 (MSVC 19.44.35230.0, ML64 14.44.35230.0), Windows SDK 10.0.26100, Python 3.12.10 (
pefile==2024.8.26,iced-x86==1.21.0), at commit25d03f5:tools/cpu_chained_aot.py, buildingcpu_chained_jne_liftedfails as expected:cpu_aot_chained_rangesoutput:two null paths, two non-null inputs (JE and JNE), RBX/RSI, guarded writes, version-2 chained unwind and eight rejection controls passed)Evidence and follow-up
Both fixtures are assembled from the original MASM source in
tests/cpu/chained.asmand compared against native Windows x64 execution with physical RBX/RSI and guard-slot verification.Other
TEST-followed branch conditions remain intentionally rejected unless needed by a concrete profile.Checklist
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-21T17:56:14Z.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
25d03f5ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.