cpu: lower SSSE3/SSE4.1/SSE4.2 insert/extract, ptest, misc integer, and crc32 #377
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!377
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/377/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:47 UTC · original
Vonsek:ag/cpu-lower-sse41-42-misc→main· +424 −0 · 6 files · 3 commits · merged 2026-11-22 12:26 UTCChange
ptest, andcrc32instructions (plus legacymovdqu) intools/ffx_version_query.py:pextrb,pextrw,pextrd,pextrq,pinsrb,pinsrw,pinsrd,pinsrqpmaddubsw,pmulhrswphminposuw,ptest(updating ZF and CF),mpsadbw,movntdqapcmpgtq,crc32(8/16/32/64-bit Castagnoli CRC-32C)EncodingKind.LEGACYXMM forms, rejecting 64-bit MMX encodings.SSSE3), 19 (SSE4.1), and 20 (SSE4.2) before invoking the native fixture (exiting 77 withSKIP_RETURN_CODE 77on hosts without those features).tests/cpu/sse41_42_misc.{asm,def,py}, CMake targetcpu_sse41_42_misc_lifted, CTestcpu_aot_sse41_42_misc, coverage mapping intools/form_coverage.py, and documentation indocs/experiments.md.Verification
cmake --build --preset dev --target cpu_sse41_42_misc_lifted:ValueError: unsupported query operation at 0x1000: movdqu xmm0,[rcx]cmake --build --preset dev --target cpu_sse41_42_misc_liftedsucceeded with 0 warningsctest --preset dev --no-tests=error -R "^(cpu_aot_sse41_42_misc|cpu_aot_bmi1)$" -V: 2/2 passed (21 SSSE3/SSE4.1/SSE4.2 misc cases matched native and translated DLLs, covering all 4(ZF, CF)combinations ofptest, 8/32/64-bitcrc32, and 64-bit MMXpmulhrsw mm0, mm1rejection control).\out\pe-env\Scripts\python.exe -B tests/form_coverage_check.py:form coverage checks passedEvidence and follow-up
SSE3-4-grouped mnemonics and 2SSE-grouped mnemonics indocs/coverage/x64_zen2.tsvusing source-built fixtures, gated by a runtime CPUID check.@chatgpt-codex-connector[bot] on GitHub · 2026-11-21 23:51 UTC · original · edited 2026-11-21 23:54 UTC
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
570bbfcℹ️ 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-22 12:22 UTC · original
I pushed
520aabbto resolve the shared SIMD conflicts. It reuses the existing MOVDQU path, clears tracked OF/PF on PTEST, and limits packed binary forms to tracked XMM sources. The aligned native MOVNTDQA case is still checked; translation now explicitly rejects that memory form. A separate contribution can establish the alignment and memory-type contract with aligned and misaligned native comparisons. On Windows x64,ctest --preset dev --no-tests=error -R '^cpu_aot_(sse41_42_misc|sse2_int|fma_scalar)$'passed 3/3, with no skips, andpython -B tests/form_coverage_check.pypassed.