cpu: add SSE2 leaf AOT translator covering 23 forms #603
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/609"
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 MarlomMedeiros on 2026-11-22T15:41:29Z.
Change
tools/cpu_sse2_aot.py, a leaf AOT translator covering 23 of the 64 forms indocs/coverage/x64_zen2.tsvgroupSSE2, legacy encodings only:cmppd(all 8 imm8 predicates), packed convertscvtdq2pd/cvtdq2ps/cvtpd2dq/cvtpd2ps/cvtps2dq/cvtps2pd/cvttpd2dq/cvttps2dq,cvtpi2pd(m64 source),cvtsd2si(r32/r64),maxsd/minsd/sqrtsd,movapd/movdqa,movhpd/movlpd,movntdq/movntpd/movnti,lfence/mfence. Generated C++ uses a portableVec128lane model, no intrinsics.movdqaserves as the fixture's only transport form.cvtpd2pi,cvttpd2pi,movdq2q,movq2dquse MMX register operands andmaskmovdqustores through implicitDS:rdi.tests/cpu/sse2_regs.{asm,def}+sse2_regs_check.py, CTestcpu_aot_sse2_regs, coverage mapping intools/form_coverage.py/tests/form_coverage_check.py, and documentation indocs/experiments.md.Verification
ctest --preset dev --no-tests=error -R '^cpu_aot_sse2_regs$': passed (1,168 native/lifted/reference cases matched bit-for-bit across 57 exports; ALTER_IMM diverged on all 3 mutated exports, 28 cases each; output-mutation control caught)ctest --preset dev --no-tests=error -R '^cpu_': 112/112 passed.\out\pe-env\Scripts\python.exe -B tests/form_coverage_check.py: passed (SSE2 group 14 -> 37/64, total x64 Zen 2 549 -> 572/948).\out\pe-env\Scripts\python.exe -B tests/bidi_controls_check.py: passedEvidence and follow-up
sdops are tested for destination upper-64 preservation the same way.maskmovdqu, unalignedmovapd/movdqa/movnt*faults (aligned moves lower to memcpy and accept any address), control flow or calls mixed with SSE2 state, nonvolatileXMM6..XMM15prologues, title CPU execution.Imported from R0Y00/Xbox2Windows. Originally posted by copilot-pull-request-reviewer[bot] on 2026-11-22T15:41:43Z.
Review: COMMENTED
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-22T18:41:26Z.
Verification of
75e4701on an Intel Core i7-6820HQ (Skylake), Windows 11 26100.9168, MSVC/ML64 19.52.37029,devpreset. It merges cleanly withmain, and all 112cpu_tests pass (the only skip is the usualcpu_aot_crypto_shacapability skip). The new check reports:Unlike #602, where a vendor-dependent DPPS NaN case fails on Intel, the native/lifted/reference comparison here holds on Skylake.
AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T13:01:38Z.
I resolved the coverage-test conflict in
85c504don your original branch and switched the fixture to its source-local coverage registration. The generated code now emits host LFENCE/MFENCE, and the aligned-buffer profile rejects misaligned displacements for full 128-bit memory operands. The existing unaligned qword controls are preserved. The docs spell out the aligned bases, private buffers and default MXCSR controls used by the fixture.Windows dev and /O2 each passed 1,168 native/lifted/reference comparisons across 57 exports, all three mutation witnesses, 69 unit rejection controls and 12 PE-patched controls. Form coverage and docs links passed. GitHub CI is running on this head.