cpu: lower all 7 SHA-NI instructions #375
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/381"
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:55:51Z.
Change
movdqu) intools/ffx_version_query.py:sha1msg1,sha1msg2,sha1nexte,sha1rnds4(all 4 round-function selectors)sha256msg1,sha256msg2,sha256rnds2(using implicitxmm0message-schedule/constant input)EncodingKind.LEGACYXMM forms.SHA) before invoking the native fixture (exiting 77 withSKIP_RETURN_CODE 77on hosts without SHA-NI).tests/cpu/crypto_sha.{asm,def,py}, CMake targetcpu_crypto_sha_lifted, CTestcpu_aot_crypto_sha, coverage mapping intools/form_coverage.py, and documentation indocs/experiments.md.Verification
cmake --build --preset dev --target cpu_crypto_sha_lifted:ValueError: unsupported query operation at 0x1000: movdqu xmm0,[rcx]cmake --build --preset dev --target cpu_crypto_sha_liftedsucceeded with 0 warningsctest --preset dev --no-tests=error -R "^(cpu_aot_crypto_sha|cpu_aot_bmi1)$" -V: 2/2 passed (10 SHA-NI cases matched native and translated DLLs+ unmodeled-registersha1msg1 xmm3, xmm0rejection control).\out\pe-env\Scripts\python.exe -B tests/form_coverage_check.py:form coverage checks passedEvidence and follow-up
Crypto-grouped mnemonics indocs/coverage/x64_zen2.tsvusing source-built fixtures, gated by a runtime CPUID check.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-22T08:18:36Z.
Review: APPROVED
Reviewed
dd49224and built the combined tree with main on an Intel Windows host. cpu_aot_crypto_sha executed all ten native/translated exports. I also compared all 16 output bytes for each export on 128 independently generated input triples (Python Random seed 381, separate initial output-buffer sentinels), including the four SHA1RNDS4 selectors and SHA256RNDS2's implicit XMM0 input. All 1,280 comparisons matched.Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-21T23:58:54Z.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
a194ac6ℹ️ 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.