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

[SOL] Fix ALU32 instructions with explicit sign extension #116

Merged
merged 1 commit into from
Dec 6, 2024

Conversation

LucasSte
Copy link
Collaborator

@LucasSte LucasSte commented Dec 6, 2024

ALU32 instructions couldn't be correctly used because the SBF virtual machine lacks the JMP32 instruction class. Consequently, the compiler must adjust registers (sign or zero extend them) before using the existing JMP instruction class.

#114 introduced the explicit sign extension instruction, and it allowed us to properly fix that. This PR makes the ALU32 instructions usable.

@LucasSte LucasSte requested a review from dmakarov December 6, 2024 17:23
@LucasSte LucasSte marked this pull request as ready for review December 6, 2024 17:23
@LucasSte LucasSte mentioned this pull request Dec 6, 2024
2 tasks
@LucasSte LucasSte merged commit f082558 into anza-xyz:solana-rustc/18.1-2024-05-19 Dec 6, 2024
17 checks passed
@LucasSte LucasSte deleted the jmp-here branch December 6, 2024 19:10
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