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: Add SIMD load and extend and load and splat instructions for x64 #9950

Conversation

jeffcharles
Copy link
Contributor

Part of #8093. Adds support on x64 with AVX2 for:

  • v128.load8x8_s
  • v128.load8x8_u
  • v128.load16x4_s
  • v128.load16x4_u
  • v128.load32x2_s
  • v128.load32x2_u
  • v128.load8_splat
  • v128.load16_splat
  • v128.load32_splat
  • v128.load64_splat

I've changed wasm_load on the macroassemblers to take a LoadKind instead of Option<ExtendKind> to model the additional vector operations (vector extends and splats), but I'm open to changing that to a different abstraction.

@jeffcharles jeffcharles requested review from a team as code owners January 8, 2025 15:57
@jeffcharles jeffcharles requested review from abrown and pchickey and removed request for a team January 8, 2025 15:57
@saulecabrera
Copy link
Member

I can take this review.

@saulecabrera saulecabrera self-requested a review January 8, 2025 16:14
@github-actions github-actions bot added the winch Winch issues or pull requests label Jan 8, 2025
Copy link

github-actions bot commented Jan 8, 2025

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.

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 some comments inline.

winch/codegen/src/isa/aarch64/masm.rs Outdated Show resolved Hide resolved
winch/codegen/src/isa/x64/asm.rs Outdated Show resolved Hide resolved
winch/codegen/src/masm.rs Outdated Show resolved Hide resolved
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.

Thanks!

@saulecabrera saulecabrera added this pull request to the merge queue Jan 10, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 10, 2025
@saulecabrera saulecabrera added this pull request to the merge queue Jan 10, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 10, 2025
@saulecabrera saulecabrera added this pull request to the merge queue Jan 12, 2025
github-merge-queue bot pushed a commit that referenced this pull request Jan 12, 2025
…64 (#9950)

* Winch: Add SIMD load and extend and load and splat instructions

* Try removing simd_align from the unsupported for Winch list

* No more todos and rename loadkind variant

* Use AVX instructions for loads

* Adjust load with splat instructions to use AVX

* SIMD spec tests for Winch should fail on x64 MacOS

* Refine check for should-fail

* Adjust conditional check to avoid compile error
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 12, 2025
@saulecabrera saulecabrera added this pull request to the merge queue Jan 13, 2025
Merged via the queue into bytecodealliance:main with commit 6066c67 Jan 13, 2025
39 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