cpu: lower all 12 SSE4.1 pmovsx/pmovzx vector extension instructions #358
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/364"
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-21T23:24:32Z.
Change
movdquand all 12 SSE4.1 sign/zero-extending vector moves (pmovsxbw,pmovsxbd,pmovsxbq,pmovsxwd,pmovsxwq,pmovsxdq,pmovzxbw,pmovzxbd,pmovzxbq,pmovzxwd,pmovzxwq,pmovzxdq) intools/ffx_version_query.py, reading only the narrow source lane extent (lanes * src_size) for memory operands.tests/cpu/sse41_extend.asm,tests/cpu/sse41_extend.def) and differential test (tests/cpu/sse41_extend.py) wired intoCMakeLists.txtascpu_aot_sse41_extendwith ahost_has_sse41()CPUID leaf 1 ECX bit 19 check andSKIP_RETURN_CODE 77on unsupported hosts.pmovsxbd_mem).sse41_extend->cpu_aot_sse41_extendintools/form_coverage.py(+12SSE3-4mnemonics indocs/coverage/x64_zen2.tsv) and document the test indocs/experiments.md.Verification
Tested on Windows 11 (VS 2022 Build Tools 17.14, MSVC 19.44, ML64 14.44, Windows SDK 10.0.26100, Python 3.12):
cmake --build --preset dev --target cpu_sse41_extend_liftedfailed with:cmake --build --preset dev --target cpu_sse41_extend_liftedsucceeded.ctest --preset dev --no-tests=error -R "^(cpu_aot_sse41_extend|cpu_aot_bmi1|cpu_aot_shift_count|cpu_aot_version_query|cpu_aot_address_size)$" -V: 5/5 passed (13 SSE4.1 pmovsx/pmovzx cases (including narrow memory source) matched native and translated DLLs).python -B tests/form_coverage_check.py:form coverage checks passed.Evidence and follow-up
SSE3-4mnemonics (pmovsxbw/bd/bq/wd/wq/dq,pmovzxbw/bd/bq/wd/wq/dq) todocs/coverage/x64_zen2.tsvcoverage; complements #355 (14 SSSE3) and #359 (14 SSE4.1 integer ops).Checklist
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-21T23:28:27Z.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
4d2953eℹ️ 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.