cpu: lower CBW, CWDE, CDQE, CQO, MOVSX, and ADC instructions #321
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/326"
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-21T22:16:44Z.
Change
cbw,cwde,cdqe,cqo,movsx) and add-with-carry (adc) instructions intools/ffx_version_query.py, preserving upper bits on 16-bit writes, zero-extending 32-bit writes, and propagating carry-in/carry-out and ZF onadc.tests/cpu/sign_ext_adc.asm,tests/cpu/sign_ext_adc.def) and differential test (tests/cpu/sign_ext_adc.py) wired intoCMakeLists.txtascpu_aot_sign_ext_adc, verifying all 11 exports against both the native DLL and a reference model.sign_ext_adc->cpu_aot_sign_ext_adcintools/form_coverage.py(+6 Integer mnemonics indocs/coverage/x64_zen2.tsv) and document the test indocs/experiments.md.Verification
Tested on Windows 11 (VS 2022 Build Tools 17.14, MSVC 19.44, ML64 14.44, Windows SDK 10.0.26100, Python 3.12):
cmake --build --preset dev --target cpu_sign_ext_adc_liftedfailed with:cmake --build --preset dev --target cpu_sign_ext_adc_liftedsucceeded.ctest --preset dev --no-tests=error -R "^(cpu_aot_sign_ext_adc|cpu_aot_shift_count|cpu_aot_version_query|cpu_aot_address_size)$" -V: 4/4 passed (646 sign-extension and ADC cases (CBW, CWDE, CDQE, CQO, MOVSX, ADC) matched native and translated DLLs).python -B tests/form_coverage_check.py:form coverage checks passed.Evidence and follow-up
adc,cbw,cdqe,cqo,cwde,movsx) todocs/coverage/x64_zen2.tsvcoverage; all six are part of baseline x86-64 and require no optional CPUID feature gate.Checklist
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-21T22:21:47Z.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
f3355b7ℹ️ 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.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-22T02:56:35Z.
A test merge of
f9fdea0against main conflicts inCMakeLists.txt,docs/experiments.mdandtools/form_coverage.py. Keep the existing fixture registrations and add the sign-extension/ADC target and its coverage entry alongside them. Please refresh the branch and rerun the relevant fixture and Windows CI.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-22T03:07:59Z.
For your overlapping CPU and shader branches, please refresh only #326 first. Its last review identified conflicts in the CMake fixture list, coverage registration and experiment notes. I’ll review the reconciled commit and confirm which branch is next after it lands. Earlier rebase requests on your other branches can wait, including #169 and #303.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-22T03:33:39Z.
#425 and #430 have landed. #326 is still first in your queue. A trial merge against
dec705ffound one additional conflict intools/ffx_version_query.py, alongside the CMake, coverage and experiment entries already discussed. Please refresh just this branch on current main and preserve the landed shared-lifter cases.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-22T03:49:21Z.
@Vonsek, I reconciled the four conflicts on your branch using maintainer edits in
2e7a3a9. The first line oftests/cpu/sign_ext_adc.asmnow reads; coverage: source cpu_aot_sign_ext_adc, matching the original CTest registration. The PR no longer changestools/form_coverage.py. On Windows x64,cpu_aot_sign_ext_adcandcpu_aot_rotates_shiftsboth passed, as didtests/form_coverage_check.py. I also checked this fixture’s classification for pass, fail, skip and absent test results. Your branch is updated; no further rebase is needed for this migration.