Skip to content

Commit c3ad11d

Browse files
committed
Stabilize Wasm relaxed SIMD
1 parent 2495953 commit c3ad11d

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)