Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept blank spaces between register and offset #572

Merged
merged 1 commit into from
May 26, 2024

Conversation

LucasSte
Copy link

Problem

When we dump assembly from LLVM (either llvm-objdump or llc), we use a space between the register and the offset in memory operations (e.g. [r10 - 8]), but the assembly parser does not support it.

Solution

Fix the parser to accept the spaces.

@LucasSte LucasSte marked this pull request as draft May 24, 2024 21:45
@LucasSte LucasSte requested a review from Lichtso May 24, 2024 22:01
@LucasSte LucasSte marked this pull request as ready for review May 24, 2024 22:01
@LucasSte LucasSte changed the title Accept spaces between register and offset Accept blank spaces between register and offset May 24, 2024
@LucasSte LucasSte merged commit c478374 into solana-labs:main May 26, 2024
12 checks passed
@LucasSte LucasSte deleted the parser branch May 26, 2024 14:57
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