Skip to content

Winch aarch64 memory load & store #9092

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

Merged
merged 6 commits into from
Aug 13, 2024

Conversation

vulc41n
Copy link
Contributor

@vulc41n vulc41n commented Aug 8, 2024

Hey 👋

This PR implements wasm_load, wasm_store and load_ptr instructions for winch targeting aarch64.

#8321

@vulc41n vulc41n requested review from a team as code owners August 8, 2024 19:30
@vulc41n vulc41n requested review from fitzgen and removed request for a team August 8, 2024 19:30
@fitzgen fitzgen requested review from saulecabrera and removed request for fitzgen August 8, 2024 19:32
@fitzgen
Copy link
Member

fitzgen commented Aug 8, 2024

Redirecting review to @saulecabrera

@saulecabrera saulecabrera removed the request for review from a team August 12, 2024 15:08
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.

Looking good. Left one minor comment before landing this one.

src,
dst,
size,
kind.is_some(), // kind is some if the value is signed
Copy link
Member

Choose a reason for hiding this comment

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

Could ldr instead of accepting a boolean accept Option<ExtKind>? Or instead -- and maybe this is what I'd prefer -- we could introduce two methods at the assembler level:

  • sload
  • uload

And we could dispatch from wasm_load to the corresponding method depending on the value of kind, this would make more explicit depending on the extension kind. Additionally this would make it less error prone than passing a boolean.

@saulecabrera saulecabrera added this pull request to the merge queue Aug 13, 2024
Merged via the queue into bytecodealliance:main with commit f7bcb46 Aug 13, 2024
37 checks passed
@vulc41n vulc41n deleted the winch-aarch64-memory branch August 14, 2024 08:59
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.

3 participants