cpu_aot_x87_compare fails with an illegal instruction on CPUs without ADX #562
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows#562
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@lukaslw-lab on GitHub · 2026-11-22 12:36 UTC · original
AI-assisted (Claude Code).
On a Haswell CPU (Core i7-4790K, no ADX), Windows 10 22H2 build 19045, at
c4d5e8e:add_fcomi_of(from #535;adox r9d, r9d)0xc000001d(illegal instruction)windows-2025runner, whose CPU has ADX.cpu_aot_adxalready handles this: it reads CPUID leaf 7 EBX bit 19 from its translated DLL and exits 77.cpu_aot_x87_comparehas no such check and noSKIP_RETURN_CODE.Proposed fix (ready on a branch, 4 files, +33/−11): move the CPUID helper from
adx.pyinto a sharedHOST_HAS_ADXconstant, export it from the translated x87_compare DLL, and skip only the nativeadd_fcomi_ofwithout ADX. The test then runs every other check and exits 77. A broken translation still fails (controlkeepofas the translated DLL:211/12230 mismatches, exit 1). On the fork'swindows-2025runner (ADX present),cpu_aot_x87_comparestill passes in both Windows jobs, 219/219.Related: #535 (adds
add_fcomi_of), #548 (editscheck_rejections()in the same file; no overlapping lines).