Skip to content

Commit 9052139

Browse files
committed
Stabilize Wasm relaxed SIMD
1 parent b389b0a commit 9052139

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
@@ -333,7 +333,7 @@ const WASM_ALLOWED_FEATURES: &[(&str, Stability)] = &[
333333
("mutable-globals", Stable),
334334
("nontrapping-fptoint", Stable),
335335
("reference-types", Unstable(sym::wasm_target_feature)),
336-
("relaxed-simd", Unstable(sym::wasm_target_feature)),
336+
("relaxed-simd", Stable),
337337
("sign-ext", Stable),
338338
("simd128", Stable),
339339
// 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)