Stabilize Wasm relaxed SIMD

This commit is contained in:
daxpedda 2024-02-21 23:12:19 +01:00
parent b389b0ab72
commit 90521399b4
No known key found for this signature in database
GPG Key ID: 43D62A3EA388E46F
2 changed files with 10 additions and 1 deletions

View File

@ -333,7 +333,7 @@ pub fn is_stable(self) -> bool {
("mutable-globals", Stable),
("nontrapping-fptoint", Stable),
("reference-types", Unstable(sym::wasm_target_feature)),
("relaxed-simd", Unstable(sym::wasm_target_feature)),
("relaxed-simd", Stable),
("sign-ext", Stable),
("simd128", Stable),
// tidy-alphabetical-end

View File

@ -0,0 +1,9 @@
//@ only-wasm32-wasip1
//@ compile-flags: -Ctarget-feature=+relaxed-simd,+simd128 --crate-type=lib
//@ build-pass
use std::arch::wasm32::*;
pub fn test(a: v128, b: v128, m: v128) -> v128 {
i64x2_relaxed_laneselect(a, b, m)
}