cpu: lower 56 packed and scalar float/double instructions (SSE, SSE2, AVX) #719
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/725"
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 MrSkelee on 2026-11-22T23:13:25Z.
Summary
Lowers 56 packed and scalar floating point instructions across legacy SSE/SSE2 and AVX (VEX.128) encodings with full native differential coverage.
Highlights
ADDPS,SUBPS,MULPS,DIVPS,MAXPS,MINPS,SQRTPS,ANDPS,ANDNPS,ORPS,XORPSSQRTSS,MAXSS,MINSSADDPD,SUBPD,MULPD,DIVPD,MAXPD,MINPD,SQRTPD,ANDPD,ANDNPD,ORPD,XORPDSQRTSD,MAXSD,MINSDVADDPS,VSUBPS,VMULPS,VDIVPS,VMAXPS,VMINPS,VSQRTPS,VANDPS,VANDNPS,VORPS,VXORPSVADDPD,VSUBPD,VMULPD,VDIVPD,VMAXPD,VMINPD,VSQRTPD,VANDPD,VANDNPD,VORPD,VXORPDVSQRTSS,VMAXSS,VMINSSVSQRTSD,VMAXSD,VMINSDdev(/Od) andrelease(/O2) presets.Verification
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-22T23:26:30Z.
The current profile says register-only SSE/SSE2 and VEX.128, but the new branch indexes
wide_xmmbefore validating the operand forms. Valid decoded YMM operands, memory operands and untracked XMM registers can raiseKeyErrorinstead of the normal unsupported diagnostic. Please validate width, encoding and all source/destination kinds before selecting a lowering and add rejection controls. Keep the raw-bit readback, and for MIN/MAX add two different signed NaN payloads (quiet and signaling, each operand order) plus opposite signed zeros. Document which MXCSR configuration the comparison establishes.Imported from R0Y00/Xbox2Windows. Originally posted by MrSkelee on 2026-11-22T23:40:54Z.
Updated in
c7070e9:ffx_version_query.pynow explicitly verifiesencoding, operand count, and that every operand is a tracked register inwide_xmmbefore selecting lowering, raising descriptiveValueErrorinstead of indexing errors.tests/cpu/float_packed.pyfor decoded 256-bit YMM forms (vaddps ymm0, ymm1, ymm2), memory operands (addps xmm0, [rcx],vaddps xmm0, xmm1, [rcx]), and untracked registers (xmm3).+QNaN,-QNaN) and signaling (+SNaN,-SNaN) payloads across both operand orders, along with+0.0vs-0.0for single and double precision MIN/MAX.dev(/Od) andrelease(/O2) presets.