cpu: lower all 12 SSE4.1 pmovsx/pmovzx vector extension instructions #364
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!364
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/364/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-21 23:24 UTC · original
Vonsek:ag/cpu-lower-sse41-extend→main· +236 −1 · 6 files · 4 commits · merged 2026-11-22 10:26 UTCChange
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
@chatgpt-codex-connector[bot] on GitHub · 2026-11-21 23:28 UTC · original · edited 2026-11-21 23:32 UTC
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.