cpu: add AVX VEX FP compare AOT lifter and test suite #2663
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2671"
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 Ammmae0x on 2026-11-26T01:39:30Z.
Change
Add a bounded AOT lifter ( ools/cpu_avx_cmp_aot.py) and source-built MASM/differential verification suite ( ests/cpu/avx_cmp_aot.{asm,def,_check.py}, CTest cpu_aot_avx_cmp) covering all 4 AVX VEX floating-point compare mnemonics across all 32 5-bit predicates (imm8 & 0x1F):
et.
Verification
Verified on commit
e4938fb4(based onupstream/main82c70807) on Windows x64 (MSVC, both dev Debug andelease /O2):
ctest --preset dev -N-> 2165 total tests,cpu_aot_avx_cmpregistered withSKIP_RETURN_CODE 77andFORM_COVERAGE_RECORD.cmake --build --preset dev --clean-first --target cpu_avx_cmp_aot_original cpu_avx_cmp_aot_original_lifted cpu_avx_cmp_aot_altered cpu_avx_cmp_aot_altered_lifted-> exit 0, 0 errors, 0 warnings.ctest --preset dev --no-tests=error -R '^cpu_aot_avx_cmp$' -E 'cpu_native_archive_' -V-> 1/1 passed: 26 forms accepted, 34 refusal controls, 5 CLI negative checks, 1280 differential cases across 154 exports / 32 predicates / DAZ & MXCSR.IE modes, 5 ALTER_AVX_CMP altered controls diverged, FORM_COVERAGE_RECORD emitted 12 forms (et, vcmppd, vcmpps, vcmpsd, vcmpss, vmovapd, vmovaps, vmovsd, vmovss, vmovupd, vmovups, vzeroupper).
cmake --build --preset release --clean-first --target cpu_avx_cmp_aot_original cpu_avx_cmp_aot_original_lifted cpu_avx_cmp_aot_altered cpu_avx_cmp_aot_altered_lifted-> exit 0, 0 errors, 0 warnings.ctest --preset release --no-tests=error -R '^cpu_aot_avx_cmp$' -E 'cpu_native_archive_' -V-> 1/1 passed (same 1280 cases + 5 altered controls + 12 forms under /O2).out\pe-env\Scripts\python.exe -B tests\form_coverage_check.py,tests\docs_links_check.py,tests\bidi_controls_check.py-> all exit 0.tests/cpu/avx_cmp_aot_check.py): disabling EVEX rejection, disabling non-[r8] store guard, and truncating imm8 predicate mask to 4 bits.Evidence and follow-up
tests/cpu/avx_cmp_aot.asmand module definitiontests/cpu/avx_cmp_aot.defare original repository files under MIT License (no external dumps or binaries).; coverage: record cpu_aot_avx_cmpfor automated x64 form coverage tracking.Checklist
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T03:00:40Z.
Review: COMMENTED
Review of head
440c70d0(main merged in; the PR's own diff is unchanged). Comment review.What I checked:
git diff --check, docs_links_check, bidi_controls_check: clean.ctest -R avx_cmp: 1/1 passed on each.No findings. Sound. Merge waits for the required CI on this head.
AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T03:00:41Z.
Win2025 WARP receipt for head
440c70d0after updating with main.Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit
440c70d036c4f84fe99963e535a0048995736a4d:--preset dev):cmake --build --preset dev --target cpu_avx_cmp_aot_altered cpu_avx_cmp_aot_altered_lifted cpu_avx_cmp_aot_original cpu_avx_cmp_aot_original_lifted -- -j 2):2.50s(configure3.25s)ctest --preset dev -R 'avx_cmp' --parallel 2 --no-tests=error --output-on-failure): 1/1 passed (4.00s:cpu_aot_avx_cmp3.77s)/O2(--preset release):cmake --build --preset release --target cpu_avx_cmp_aot_altered cpu_avx_cmp_aot_altered_lifted cpu_avx_cmp_aot_original cpu_avx_cmp_aot_original_lifted -- -j 2):4.01s(configure0.00s)ctest --preset release -R 'avx_cmp' --parallel 2 --no-tests=error --output-on-failure): 1/1 passed (3.92s:cpu_aot_avx_cmp3.72s)sccache: 52/69 hits; wall21.2sAI-assisted; commands listed were executed locally.