cpu: lower VEX AVX packed sign/zero-extend, horizontal integer, and phminposuw #402
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!402
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/402/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:24 UTC · original
Vonsek:ag/cpu-lower-avx-int-extend-hadd→main· +426 −0 · 6 files · 4 commits · merged 2026-11-23 16:12 UTCChange
tools/ffx_version_query.py:vpmovsxbw,vpmovsxbd,vpmovsxbq,vpmovsxwd,vpmovsxwq,vpmovsxdqvpmovzxbw,vpmovzxbd,vpmovzxbq,vpmovzxwd,vpmovzxwq,vpmovzxdqvphaddw,vphaddd,vphaddsw,vphsubw,vphsubd,vphsubsw,vphminposuwEncodingKind.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_extend_hadd.{asm,def,py}, CMake targetcpu_avx_int_extend_hadd_lifted, CTestcpu_aot_avx_int_extend_hadd, coverage mapping intools/form_coverage.py, and documentation indocs/experiments.md.Verification
cmake --build --preset dev --target cpu_avx_int_extend_hadd_lifted:ValueError: unsupported query operation at 0x1004: vpmovsxbw xmm0,xmm1cmake --build --preset dev --target cpu_avx_int_extend_hadd_liftedsucceeded with 0 warningsctest --preset dev --no-tests=error -R "^(cpu_aot_avx_int_extend_hadd|cpu_aot_bmi1)$" -V: 2/2 passed (19 VEX AVX extend/horizontal/minpos cases matched native and translated DLLs+ EVEXvpmovsxbwrejection 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:31 UTC
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
5704bd3ℹ️ 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:59 UTC · original
Maintainer update at
5fbc4ab: resolved the shared-lowerer and CMake conflicts after #401, retaining all 19 original XMM cases. The new YMM controls are AVX2-gated and compare an 8-byte sign-extension read and a 32-byte horizontal add against native plus independent lane references. The shared width-aware memory read is used, and both EVEX and a VEX source outside the register profile produce a diagnostic.ctest --preset <dev|release> --no-tests=error -R '^cpu_aot_(avx_int_extend_hadd|avx_int_minmax_mul|avx_packed_int|avx_packed_fp)$'passed 4/4 in each preset, with the AVX2 controls exercised. The original PR branch was fast-forwarded and CI is rerunning.