forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#117468 - daxpedda:wasm-relaxed-simd, r=alex…
…crichton Stabilize Wasm relaxed SIMD This PR stabilizes [Wasm relaxed SIMD](https://github.com/WebAssembly/relaxed-simd) which has already reached [phase 4](https://github.com/WebAssembly/proposals/tree/04fa8c810e1dc99ab399e41052a6e427ee988180?tab=readme-ov-file#phase-4---standardize-the-feature-wg). Tracking issue: rust-lang#111196 Implementation PR: rust-lang/stdarch#1393 Documentation: rust-lang/reference#1421 Stdarch: rust-lang/stdarch#1494 Closes rust-lang#111196.
- Loading branch information
Showing
8 changed files
with
65 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule stdarch
updated
91 files
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
//@ only-wasm32-wasip1 | ||
//@ compile-flags: -Ctarget-feature=+relaxed-simd --crate-type=lib | ||
//@ build-pass | ||
|
||
use std::arch::wasm32::*; | ||
|
||
pub fn test(a: v128, b: v128, m: v128) -> v128 { | ||
i64x2_relaxed_laneselect(a, b, m) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
//@ only-wasm32-wasip1 | ||
//@ compile-flags: --crate-type=lib | ||
//@ build-pass | ||
|
||
use std::arch::wasm32::*; | ||
|
||
#[target_feature(enable = "relaxed-simd")] | ||
pub fn test(a: v128, b: v128, m: v128) -> v128 { | ||
i64x2_relaxed_laneselect(a, b, m) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
//@ only-wasm32-wasip1 | ||
//@ compile-flags: -Ctarget-feature=+relaxed-simd --crate-type=lib | ||
//@ build-pass | ||
|
||
use std::arch::wasm32::*; | ||
|
||
pub fn test(a: v128, b: v128, m: v128) -> v128 { | ||
i64x2_relaxed_laneselect(a, b, m) | ||
} |