Skip to content

Commit d0fd12f

Browse files
committed
Auto merge of rust-lang#117468 - daxpedda:wasm-relaxed-simd, r=wesleywiser
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.
2 parents 3ad5f45 + c3ad11d commit d0fd12f

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

compiler/rustc_target/src/target_features.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ const WASM_ALLOWED_FEATURES: &[(&str, Stability)] = &[
322322
("mutable-globals", Stable),
323323
("nontrapping-fptoint", Stable),
324324
("reference-types", Unstable(sym::wasm_target_feature)),
325-
("relaxed-simd", Unstable(sym::wasm_target_feature)),
325+
("relaxed-simd", Stable),
326326
("sign-ext", Stable),
327327
("simd128", Stable),
328328
// tidy-alphabetical-end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
//@ only-wasm32-wasip1
2+
//@ compile-flags: -Ctarget-feature=+relaxed-simd --crate-type=lib
3+
//@ build-pass
4+
5+
use std::arch::wasm32::*;
6+
7+
pub fn test(a: v128, b: v128, m: v128) -> v128 {
8+
i64x2_relaxed_laneselect(a, b, m)
9+
}

0 commit comments

Comments
 (0)