cpu: lower VEX AVX packed shifts, packs, unpacks, shuffles, blends, and insert/extract #398
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/404"
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 Vonsek on 2026-11-22T00:30:54Z.
Change
tools/ffx_version_query.py:vpsllw,vpslld,vpsllq,vpsrlw,vpsrlq,vpsraw,vpsrad,vpslldqvpacksswb,vpackssdw,vpackuswb,vpackusdwvpunpcklbw,vpunpcklwd,vpunpckldq,vpunpcklqdq,vpunpckhbw,vpunpckhwd,vpunpckhdq,vpunpckhqdqvpshufd,vpshuflw,vpshufhw,vpblendw,vpblendvb,vpmovmskbvpextrb,vpextrw,vpextrd,vpextrq,vpinsrb,vpinsrw,vpinsrd,vpinsrqEncodingKind.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_shifts_pack.{asm,def,py}, CMake targetcpu_avx_int_shifts_pack_lifted, CTestcpu_aot_avx_int_shifts_pack, coverage mapping intools/form_coverage.py, and documentation indocs/experiments.md.Verification
cmake --build --preset dev --target cpu_avx_int_shifts_pack_lifted:ValueError: unsupported query operation at 0x1004: vpsllw xmm0,xmm1,5cmake --build --preset dev --target cpu_avx_int_shifts_pack_liftedsucceeded with 0 warningsctest --preset dev --no-tests=error -R "^(cpu_aot_avx_int_shifts_pack|cpu_aot_bmi1)$" -V: 2/2 passed (34 VEX AVX shift/pack/unpack/shuffle/blend/movemask/insert/extract cases matched native and translated DLLs+ EVEXvpshufdrejection 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.Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-22T00:37:40Z.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
c2a56e8ℹ️ 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.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T16:15:58Z.
Maintainer update at
afaa07e: resolved the CMake and lowerer conflicts after #402 and kept all 34 original MASM comparisons. The existing register-form XMM paths stay in use; the new YMM memory shuffle checks both lane outputs independently. The memory count for packed shifts reads the full m128 operand before using its low 64 bits, which the cross-page fault control now verifies before any result store. The blend control uses a destination that aliases the mask, and the fixture also checks refusal of EVEX and an unsupported source register.ctest --preset <dev|release> --no-tests=error -R '^cpu_aot_(avx_int_shifts_pack|avx_int_extend_hadd|avx2_permutes|avx_packed_int|avx2_shifts)$'passed 5/5 in each preset. The original branch is fast-forwarded and CI is rerunning.