Skip to content

Commit eb0a444

Browse files
committed
Stabilize Wasm relaxed SIMD
1 parent 83dcdb3 commit eb0a444

File tree

4 files changed

+11
-23
lines changed

4 files changed

+11
-23
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

library/stdarch

Submodule stdarch updated 91 files

tests/codegen/simd/issue-120720-reduce-nan.rs

-21
This file was deleted.
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)