cpu: skip native ADOX in cpu_aot_x87_compare on hosts without ADX #557
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/563"
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 lukaslw-lab on 2026-11-22T12:43:17Z.
Change
cpu_aot_x87_compareno longer crashes on CPUs without ADX. Fixes #562.add_fcomi_of(#535) executesadoxnatively, which faults with0xc000001dwithout ADX; the translated DLL doesn't need ADX. The CPUID check thatcpu_aot_adxalready uses (leaf 7 EBX bit 19) becomes a sharedHOST_HAS_ADXconstant intests/cpu/adx.pyand is also exported from the translated x87_compare DLL. Without ADX, only the nativeadd_fcomi_ofis left out: every other native and translated case, thex87_callpreservation check, the seven controls and the rejections still run and still fail on a mismatch. The test then exits 77 (SKIP_RETURN_CODEadded). With ADX nothing changes.Overlap: #548 edits
check_rejections()intests/cpu/x87_compare.py; this change doesn't touch that function.Verification
Commit
97f9322(onupstream/mainb1be506), Windows 10 22H2 (build 19045), Intel Core i7-4790K (no ADX), Visual Studio 2026 18.12 (MSVC 19.52), Windows SDK 10.0.26100, CMake 4.3.1, Python 3.13.7.Before this change, at
c4d5e8e:OSError: [WinError -1073741795] Windows Error 0xc000001din the nativeadd_fcomi_of; the other 11 native exports and all 12 translated exports ran.Negative control: the
keepofcontrol DLL passed as the translated DLL still fails without ADX (AssertionError: lifted: 211/12230 mismatches, exit 1), so the skip can't hide a translation error.With ADX: the same change at
a5a4c67(before the rebase) on thewindows-2025runner in my fork: all four workflow jobs pass, andcpu_aot_adxandcpu_aot_x87_comparereport Passed in both Windows jobs (219/219).CPU area locally at
97f9322:ctest --preset dev --no-tests=error -R '^cpu_': 111 tests, 108 passed, 0 failed, 3 skipped (capability, exit 77):cpu_aot_crypto_sha,cpu_aot_adxandcpu_aot_x87_compare.Evidence and follow-up
cpu_aot_adxcode, moved into a constant.cpu_aot_x87_comparewas the only failure of that kind.Checklist
AI-assisted: prepared with Claude Code; the commands and results above were run on the author's PC.
🤖 Generated with Claude Code