mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:50:52 +01:00
[PR #1560] cpu_feature_scan: flag AVX-512VL regs, fix int/prefix parsing, and guard CLI --base/read errors (CPU-FEATURE-SCAN-CLASSIFY-AND-CLI) #1586
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#1586
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/1560
Author: @IlyassRS3
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:fix/cpu-feature-scan-classify-and-cli📝 Commits (1)
2828d5ccpu_feature_scan: flag AVX-512VL regs, fix int/prefix parsing, and guard CLI --base/read errors📊 Changes
2 files changed (+78 additions, -12 deletions)
View changed files
📝
tests/test_cpu_feature_scan.py(+49 -1)📝
tools/cpu_feature_scan.py(+29 -11)📄 Description
Item ID:
CPU-FEATURE-SCAN-CLASSIFY-AND-CLI(new item; coordination issue #14 is at GitHub's 2,500-comment cap with no open successor at PR time — confirmed 0 open PRs touchtools/cpu_feature_scan.py)Summary
xmm16–xmm31,ymm16–ymm31):ZMMpreviously matched onlyzmm*and{k*}, misclassifying EVEX instructions usingxmm16..31/ymm16..31(which#UDon Zen 2) as baselineAVX/AVX2orVAES.intimmediate matching:IMMEDIATEpreviously accepted only uppercase hex with optionalh, causing lowercase (int 2ch,int 2dh) and0x-prefixed (int 0x29,int 0x2c,int 0x2d,int 0x3) Windows-served interrupt vectors to be falsely flagged as kernel-callINT.classify(): splitting prefixes withops.partition(" ")dropped the following mnemonic when separated by multiple spaces or a tab (e.g.lock+cmpxchg16b,rep+\tinsb), and uppercase mnemonics/registers bypassed classification.--baseand source reads inmain(): reject negative--basevalues with a clean parser error (replacing<lambda>), and catchOSErrorfrominline_scan.read_lines(args.source)cleanly with exit code 2 instead of a traceback.Testing
python3 -W error -I tests/test_cpu_feature_scan.py -v: 26/26 passedpython3 -W error -I tests/test_text_write_line_endings.py -v: 3/3 passedpython3 -I scripts/check_no_game_data.py tools/cpu_feature_scan.py tests/test_cpu_feature_scan.py: passedpython3 -m compileall -q make_game.py tools tests: passedmain:tools/cpu_feature_scan.py: all 5 new/updated tests fail (FAILED (failures=5, errors=1)).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.