cpu: lower 56 packed and scalar float/double instructions (SSE, SSE2, AVX) #725
No reviewers
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!725
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/725/head"
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?
@MrSkelee on GitHub · 2026-11-22 23:13 UTC · original
MrSkelee:feature/cpu-float-packed→main· +953 −0 · 5 files · 2 commits · merged 2026-11-22 23:53 UTCSummary
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
Addresses review feedback on operand validation and floating point edge cases: - Validates instruction encoding, operand counts, and register tracked-status before selecting a lowering, raising ValueError('unsupported ...') instead of KeyError. - Adds explicit rejection controls in tests/cpu/float_packed.py for YMM 256-bit width, memory operands, and untracked XMM registers. - Adds test cases for signed quiet and signaling NaNs across both positive and negative payloads in both operand orders, plus opposite signed zeros (+0.0 vs -0.0). - Documents the established default x64 MXCSR configuration (0x1F80). - All 1,400 differential comparisons verified passing across dev and release presets.@R0Y00 on GitHub · 2026-11-22 23:26 UTC · original
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.@MrSkelee on GitHub · 2026-11-22 23:40 UTC · original
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.