mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:00:52 +01:00
[PR #2188] docs(cpu_features): record baseline instruction counts and AVX1/SSE4.2 host delta #2191
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#2191
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/2188
Author: @robot00f
Created: 11/26/2026
Status: 🔄 Open
Base:
main← Head:docs/cpu-avx1-baseline-counts📝 Commits (1)
c59ae5edocs(cpu_features): record baseline instruction counts and AVX1/SSE4.2 host delta📊 Changes
1 file changed (+46 additions, -4 deletions)
View changed files
📝
docs/cpu_features.md(+46 -4)📄 Description
Summary
Record the baseline instruction counts measured by
tools/cpu_feature_scan.py(at0b11d86b) on the1.0.2.1executable indocs/cpu_features.mdand document theAVX1 + SSE4.2host delta (Intel Sandy Bridge and Ivy Bridge).baselinefeature counts in theInstruction sets usedtable (AVX,FMA,AVX2,BMI1,BMI2,AES,F16C,ADX,PCLMULQDQ,POPCNT,MOVBE,LZCNT,CX16,PREFETCHW, and0forRDRAND,RDSEED,FSGSBASE,CLFLUSHOPT).AVX(2,871,070in.pdata) includes32,101register-sourcevbroadcastss(31,970) andvbroadcastsd(131) sites (ModRM.mod == 3), which requireAVX2(#UDonAVX1) unlike the memory-source forms.AVX2(81,500in.pdata) contains0vgather*orvpgather*sites anywhere in.text.AVX1 + SSE4.2 hosts (pre-Haswell)subsection distinguishing:#UD(STATUS_ILLEGAL_INSTRUCTION) cleanly on anAVX1 + SSE4.2host (AVX2,FMA3,F16C, VEX-encodedBMI1/BMI2,MOVBE).LZCNT(F3 0F BD) andTZCNT(F3 0F BC), which execute without faulting asBSRandBSFwhenCPUID.80000001H:ECX.LZCNT[bit 5] == 0/CPUID.07H:EBX.BMI1[bit 3] == 0(988of11,827.pdatatzcntsites immediately feed aCF-reading conditional move or branch, and149of294.pdatalzcntsites use 4-byte non-REX encodings).Validation
python -I -m unittest tests/test_docs_links.py tests/test_docs_table_rows.py tests/test_docs_table_ids.py tests/test_docs_repo_paths.py tests/test_docs_list_items.py tests/test_docs_repeated_lines.py tests/test_text_write_line_endings.py(all 7 suites OK)python -I scripts/check_no_game_data.py docs/cpu_features.md(clean)Claim: https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7181466437
AI-assisted: yes (Antigravity, Gemini 4 Carbon)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.