Repository navigation
Conversation
…ssification - Formatting a jal for a full execution trace reached a todo!() in the pinned yaxpeax-riscv (J-type immediate) and panicked inside the instruction callback. jal is now formatted by tsffs. - BLT was missing from the compare instructions, so signed less-than branches were never logged by cmplog. - SLT, SLTU, SLTI and SLTIU logged (rd, rs1) instead of the two compared values. - AUIPC was classified as a call and a return although it does not transfer control, which added an edge on every auipc. Compressed (16-bit) instructions are still not decoded by the pinned yaxpeax-riscv. This is now noted on the disassembler. Fixes intel#419 Refs intel#420 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
- AArch64: BLR is now a call and BRAB a branch. CCMN, CCMP, CSEL, CSINC, CSINV and CSNEG never change pc and are no longer control flow. - i386: JECXZ and JCXZ are branches (JRCXZ does not exist in 32-bit mode). - x86_64: JECXZ (JRCXZ with an address-size prefix) is a branch. Fixes intel#422 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This branch has not been deployed
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.
Summary
Instruction classification fixes, two commits (RISC-V, then AArch64 and x86).
Compressed (16-bit) RISC-V instructions are still not decoded by the pinned yaxpeax-riscv. That part of #420 is not addressed here, only noted on the disassembler, so #420 should stay open.
Fixes #419
Fixes #422
Refs #420
Evidence
Disassembler::disassemble_to_stringonjalpanics; no unit test covered RISC-V classification.After: new unit tests pass:
jecxz/jcxz(i386) andjrcxz/jecxz(x86_64).cargo fmt --check,cargo clippy -r: clean. Lib unit tests: 41 passed (37 onmain, 4 new).Not run under SIMICS on RISC-V or AArch64 targets. The AArch64 list changes have no unit test.
Merge Danger
Door: two-way
Blast Radius: coverage
Edge coverage changes on RISC-V and AArch64:
auipcand the AArch64 conditional selects no longer add edges, AArch64blr/brabnow do. Coverage maps and corpora from earlier runs on these architectures are not comparable edge for edge with new runs. x86 only gains the rarely usedjecxz/jcxz.🤖 Generated with Claude Code