cpu: lower VEX AVX packed saturating, min/max, avg, multiply, and sad instructions #401
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!401
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/401/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?
@Vonsek on GitHub · 2026-11-22 00:21 UTC · original
Vonsek:ag/cpu-lower-avx-int-minmax-mul→main· +627 −0 · 6 files · 5 commits · merged 2026-11-23 15:56 UTCChange
tools/ffx_version_query.py:vpaddsb,vpaddsw,vpaddusb,vpaddusw,vpsubsb,vpsubsw,vpsubusb,vpsubuswvpminsb,vpmaxsb,vpminub,vpmaxub,vpminsw,vpmaxsw,vpminuw,vpmaxuw,vpminsd,vpmaxsd,vpminud,vpmaxudvpavgb,vpavgw,vpmulhw,vpmulhuw,vpmullw,vpmulld,vpmuldq,vpmuludq,vpmulhrsw,vpmaddwd,vpmaddubsw,vpsadbw,vmpsadbwEncodingKind.VEX(rejecting EVEX encodings) and zero upper YMM bytes for 128-bit XMM destinations.OSXSAVE) and 28 (AVX) plus XCR0 XMM/YMM state before invoking the native fixture (exiting 77 withSKIP_RETURN_CODE 77on hosts without AVX).tests/cpu/avx_int_minmax_mul.{asm,def,py}, CMake targetcpu_avx_int_minmax_mul_lifted, CTestcpu_aot_avx_int_minmax_mul, coverage mapping intools/form_coverage.py, and documentation indocs/experiments.md.Verification
cmake --build --preset dev --target cpu_avx_int_minmax_mul_lifted:ValueError: unsupported query operation at 0x1008: vpaddsb xmm0,xmm1,xmm2cmake --build --preset dev --target cpu_avx_int_minmax_mul_liftedsucceeded with 0 warningsctest --preset dev --no-tests=error -R "^(cpu_aot_avx_int_minmax_mul|cpu_aot_bmi1)$" -V: 2/2 passed (33 VEX AVX saturating/minmax/avg/mul/sad cases matched native and translated DLLs+ EVEXvpmulldrejection control).\out\pe-env\Scripts\python.exe -B tests/form_coverage_check.py:form coverage checks passedEvidence and follow-up
AVX-grouped mnemonics indocs/coverage/x64_zen2.tsvusing source-built fixtures, gated by a runtime CPUID/XCR0 check.@chatgpt-codex-connector[bot] on GitHub · 2026-11-22 00:28 UTC · original · edited 2026-11-22 00:32 UTC
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
5700d1eℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
@R0Y00 on GitHub · 2026-11-23 15:44 UTC · original
Maintainer update at
e2a1f8c: resolved the conflict on main after #387, keeping both CTest registrations and the original 128-bit MASM controls. The independent comparisons also cover the modular VPMADDWD boundary and a 32-byte memory VMPSADBW whose immediate selects different offsets in the two lanes.ctest --preset <dev|release> --no-tests=error -R '^cpu_aot_(avx_int_minmax_mul|avx_packed_fp|avx_packed_int|sse2_sat_mul|ssse3_int)$'passed 5/5 in each preset. The original branch is fast-forwarded and Windows CI is rerunning.