Skip to content

Commit 35cb4ae

Browse files
committed
Stabilize Wasm relaxed SIMD
1 parent a886938 commit 35cb4ae

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

compiler/rustc_target/src/target_features.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ const WASM_ALLOWED_FEATURES: &[(&str, Stability)] = &[
330330
("mutable-globals", Stable),
331331
("nontrapping-fptoint", Stable),
332332
("reference-types", Unstable(sym::wasm_target_feature)),
333-
("relaxed-simd", Unstable(sym::wasm_target_feature)),
333+
("relaxed-simd", Stable),
334334
("sign-ext", Stable),
335335
("simd128", Stable),
336336
// 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,+simd128 --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)