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

pulley: Get strings.wast test passing #9801

Merged
merged 2 commits into from
Dec 12, 2024

Conversation

alexcrichton
Copy link
Member

Needed the imul CLIF instruction to get implemented so 32/64-bit
multiplication have now been added.

cc #9783

@alexcrichton alexcrichton requested review from a team as code owners December 12, 2024 15:26
@alexcrichton alexcrichton requested review from abrown and fitzgen and removed request for a team December 12, 2024 15:26
@alexcrichton
Copy link
Member Author

Note that this is currently based on #9797

@@ -26,7 +26,7 @@ macro_rules! define_opcode {

impl Opcode {
/// The value of the maximum defined opcode.
pub const MAX: u8 = define_opcode!( @max $( $name )* ) + 1;
pub const MAX: u8 = Opcode::ExtendedOp as u8;
Copy link
Member Author

Choose a reason for hiding this comment

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

This change was needed because otherwise we overran the recursion limit and rustc asked for a #![recursion_limit = "bigger"] value which I wanted to avoid so I switch this to using the final enum here instead.

Copy link
Member

Choose a reason for hiding this comment

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

Might be an off by one here? Does this need a + 1?

Copy link
Member Author

Choose a reason for hiding this comment

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

Double-checked, but this doesn't have the +1 for now. (it's at least the same as before)

Needed the `imul` CLIF instruction to get implemented so 32/64-bit
multiplication have now been added.

cc bytecodealliance#9783
@alexcrichton alexcrichton added this pull request to the merge queue Dec 12, 2024
Merged via the queue into bytecodealliance:main with commit 0058cb7 Dec 12, 2024
43 checks passed
@alexcrichton alexcrichton deleted the pulley-imul branch December 12, 2024 16:51
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