Skip to content

Updates for wasm simd support #1110

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 1 commit into from
Apr 7, 2021
Merged

Conversation

alexcrichton
Copy link
Member

  • Uncomment some i64-related instruction assertions now that LLVM
    supports the opcodes.
  • Fix the codegen for {i,u}32x4_trunc_sat_f32x4. This was originally
    introduced using simd_cast but that inherits LLVM's UB related to
    float-to-integer casts out of bounds. Since the original inception of
    these intrinsics in LLVM dedicated intrinsics for the wasm
    instructions have been added, so this swithces the implementation to
    using those.
  • Uncomment f64x2_convert_low_i32x4 instruction assertion and add a
    test now that this is implemented in Wasmtime.

* Uncomment some i64-related instruction assertions now that LLVM
  supports the opcodes.
* Fix the codegen for `{i,u}32x4_trunc_sat_f32x4`. This was originally
  introduced using `simd_cast` but that inherits LLVM's UB related to
  float-to-integer casts out of bounds. Since the original inception of
  these intrinsics in LLVM dedicated intrinsics for the wasm
  instructions have been added, so this swithces the implementation to
  using those.
* Uncomment `f64x2_convert_low_i32x4` instruction assertion and add a
  test now that this is implemented in Wasmtime.
@rust-highfive
Copy link

r? @Amanieu

(rust-highfive has picked a reviewer for you, use r? to override)

@Amanieu Amanieu merged commit 768b238 into rust-lang:master Apr 7, 2021
@alexcrichton alexcrichton deleted the more-wasm branch April 29, 2021 14:31
@alexcrichton alexcrichton restored the more-wasm branch December 2, 2024 15:59
@alexcrichton alexcrichton deleted the more-wasm branch December 2, 2024 15: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