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

winch: implement div for aarch64 #9762

Merged
merged 6 commits into from
Dec 10, 2024

Conversation

MarinPostma
Copy link
Contributor

Implement integer division for arch64

@github-actions github-actions bot added the winch Winch issues or pull requests label Dec 7, 2024
Copy link

github-actions bot commented Dec 7, 2024

Subscribe to Label Action

cc @saulecabrera

This issue or pull request has been labeled: "winch"

Thus the following users have been cc'd because of the following labels:

  • saulecabrera: winch

To subscribe or unsubscribe from this label, edit the .github/subscribe-to-label.json configuration file.

Learn more.

@MarinPostma MarinPostma marked this pull request as ready for review December 8, 2024 11:19
@MarinPostma MarinPostma requested review from a team as code owners December 8, 2024 11:19
@MarinPostma MarinPostma requested review from cfallin and alexcrichton and removed request for a team December 8, 2024 11:19
@cfallin cfallin requested review from saulecabrera and removed request for cfallin and alexcrichton December 8, 2024 20:07
@cfallin
Copy link
Member

cfallin commented Dec 8, 2024

passing review over to @saulecabrera if you don't mind!

Copy link
Member

@saulecabrera saulecabrera left a comment

Choose a reason for hiding this comment

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

Looks reasonable to me; a couple of nitpicks inline.

})
}

// cranelif-codegen doesn't support emitting u/sdiv for anything but I64,
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// cranelif-codegen doesn't support emitting u/sdiv for anything but I64,
// `cranelift-codegen` doesn't support emitting u/sdiv for anything but I64,

Copy link
Member

Choose a reason for hiding this comment

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

Would you mind linking to this issue from this comment? #9766

DivKind::Unsigned => ALUOp::UDiv,
};

self.emit(Inst::AluRRR {
Copy link
Member

Choose a reason for hiding this comment

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

Here you can use the emit_alu_rrr helper defined in this file.

@saulecabrera saulecabrera added this pull request to the merge queue Dec 10, 2024
Merged via the queue into bytecodealliance:main with commit bbf05aa Dec 10, 2024
42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
winch Winch issues or pull requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants