Skip to content

Winch aarch64 memory load & store#9092

Merged
saulecabrera merged 6 commits intobytecodealliance:mainfrom
vulc41n:winch-aarch64-memory
Aug 13, 2024
Merged

Winch aarch64 memory load & store#9092
saulecabrera merged 6 commits intobytecodealliance:mainfrom
vulc41n:winch-aarch64-memory

Conversation

@vulc41n
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
@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