cpu: preserve packed FMA sources until writeback #643
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/649"
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 R0Y00 on 2026-11-22T17:32:52Z.
Change
Preserve the old packed FMA3 register operands until all lanes are computed. Read lane bytes directly from the source arrays and stage the result in a separate zero-initialized array before writing it back. The full-width memory load and the 128-bit upper-half clearing are retained.
Verification
On main at
40560a6, the Windows Release job (MSVC 19.52.37029) failedcpu_aot_fma_packedat the firstvfmadd132ps_opcase. The lifted bytes differ from native even on finite lanes. The observed output is consistent with a zeroed old destination. Failing Release jobOn Windows 11 build 26200, Core i9-14900HX, MSVC 19.51.36244, the baseline
824370fpassed the focused packed test. With this patch, bothdevandreleasepassed the scalar and packed tests with 192 and 190 bit-exact comparisons respectively, no skips:The existing test remains the CI regression check on MSVC 19.52, including finite lanes, NaNs, 128-bit upper-half clearing, a memory operand and EVEX rejection.
Refs #349.
AI-assisted.