Scripts: report headers from the record-base store #1684
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1694"
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 ivall/xcl. Originally posted by broccolize on 2026-11-24T19:21:41Z.
record_writers.pycan mistake an unrelated list-field load for a record header or miss a store written as0x0(%cursor).What is in it
scripts/re/record_writers.pyreads the firstmovormovlto the record base with either spelling of offset zero. It reports a list-field source when the preceding load writes the register used by the store. Other register sources are reported as unknown.scripts/test_record_writers.pyadds four synthetic cases covering immediate stores, explicit zero displacements, direct list-field copies, and unknown register sources.Tested
python -B -m unittest discover -s scripts -p 'test_*.py': 17 passed. The four new subcases failed onc160d86before the fix.cargo build --workspacepassed.cargo test --workspace -- --test-threads=4: 858 passed, 0 failed, 42 ignored. Three GPU skips were reported: two forno wave64and one forno heap windows.Not tested
AI use
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T22:02:45Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~23 ignored.Thanks!
Imported from ivall/xcl. Originally posted by RavenCurseBurg on 2026-11-26T01:06:13Z.
I combined
69b5a84c2f6011f2da02f4433ef5b05488561788with #1730 at3c891ac137177c9e76d4ce9c96ceb2016f9adcff. There was one content conflict inscripts/re/record_writers.py. The tested merge checks that the cursor was stored on the fast path before classifying the first store to the record header.I ran 18 synthetic objdump-style listings per version (54 CLI runs across both parents and the merge). The fixtures covered immediate headers, adjacent list-field copies and overwritten source registers, both zero-offset spellings, and paths ending at a cursor update, a return or the fallback block. The merged script counted only completed writers and reported the expected header in each one.
A new two-site regression failed on each parent alone: #1694 counted the uncompleted site, while #1730 attributed the complete site's header to an unrelated load. On the combined tree
python -B -m unittest discover -s scripts -p "test_*.py"passed 19/19. Windows 11, Core i7-13700, Python 3.14.3. Saved synthetic text only; no title DLL or GPU run. OpenAI Codex (GPT-6) resolved the conflict, added the regression and ran the checks.Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-30T08:40:49Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by broccolize on 2026-11-30T11:22:20Z.
This reports command record headers from the record-base store. The tested patch is awaiting maintainer review and coordination with #1730.
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T06:30:42Z.
Triage (#1607) – head
69b5a84No open or merged PR makes the same change; #1492, #2049 and #3022 edit
scripts/re/record_writers.pybut not the header detection.On main the header loop takes the first
mov 0x..(%L),%regin the body aslist+..even when it is not stored to the record (e.g.mov 0x10(%rcx),%edxbeforemovl $0x37,(%rax)). This PR reads only the first store at(%P)/0x0(%P)and counts a list field only when the load into that register comes right before the store. The test covers both spellings and the register case. No problems found in the diff.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.