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] Expand mulh for 32-bit #127

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

LucasSte
Copy link
Collaborator

The new PQR class incorporates UHMUL and SHMUL instructions for 64-bit values. They are not available for 32-bit integers, so LLVM must promote the values to 64-bit to perform multiplication.

Without an explicit setting to do such a promotion, the compiler will crash.

@LucasSte LucasSte requested review from dmakarov and Lichtso January 15, 2025 21:54
@LucasSte LucasSte marked this pull request as ready for review January 15, 2025 21:54
@LucasSte LucasSte merged commit 53e7da9 into anza-xyz:solana-rustc/18.1-2024-05-19 Jan 16, 2025
17 checks passed
@LucasSte LucasSte deleted the mulhu branch January 16, 2025 14:48
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