Repository navigation
asm_difftest: evidence for the retroactive review (#10) and the shift proposal (#11) - #30
Merged
Merged
Conversation
… %cl shifts Adds a full-register-state harness (regs_frame.s, hw_regs.c, check_regs.ml, gen_tests.py) to the differential test, with groups zx (Pshrlzx_ri, Pandlzx_ri, Psallzx_ri), cvt (the printed xor + conversion and sqrtsd sequences) and shift (the six %cl shifts, against both the current semantics and the refinement proposed in #11). Records the evidence for the retroactive review (#10) in TRUSTED_BASE.md.
This was referenced Oct 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Test harness and docs only; no compiler or trusted-base change. Part of #10 (which stays open until the owner approves) and evidence for #11.
What this adds
harness/asm_difftest/now runs four groups:loadop,zx,cvtandshift(run.sh [TREE] [N] [SEED] [GROUPS]). Each test loads a full random register state (GPRs, all 128 bits of xmm0–15, flags), runs the exact printed sequence, and compares with the extractedAsm.exec_instr.Results (about 20k tests per instruction, two seeds; my re-run with a third seed agrees)
%rcx.%rcx.TRUSTED_BASE.mdrecords this evidence under the pending retroactive review.