Skip to content

Conversation

lukel97
Copy link
Contributor

@lukel97 lukel97 commented Jun 18, 2024

The control transfer instructions are the same for both RV32 and RV64, so we only need one set of regexps.
I think this covers all instructions and pseudo-instructions, although I'm not sure if all of them disassembled by objdump.

@lukel97 lukel97 requested review from RoboTux, asb, kbeyls and kpdev June 18, 2024 08:19
The control transfer instructions are the same for both RV32 and RV64, so we only need one set of regexps.
I think this covers all instructions and pseudo-instructions, although I'm not sure if all of them disassembled by objdump.
Copy link

@asb asb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM from a RISC-V perspective in that I believe you've captured all control flow instructions and pseudos (checking against the asm manual pseudos listing in case I forgot any). Matching b* and a line ending with a <label> is the same approach as AArch64, though it seems AArch32 seems to try to more precisely enumerate all the branch names. I think the way you do it is OK, but I'll just mention it as something that gave me pause for thought when reviewing. And if you'd tried to list them all, I'd have had to spend more time trying to double-check you hadn't missed any. So overall the current approach is probably better IMHO.

@lukel97 lukel97 requested a review from DavidSpickett October 2, 2024 06:14
@lukel97
Copy link
Contributor Author

lukel97 commented Oct 2, 2024

Gentle ping for someone on the LNT side

@lukel97 lukel97 merged commit e80247a into main Oct 15, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants