about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-02-17 00:19:36 +0100
committerGitHub <noreply@github.com>2023-02-17 00:19:36 +0100
commit1fac415997c2cad7bc97ba74f33568e0e21d7b63 (patch)
treeac31b105ac68834bcdc8c30f41d839cb0fb5c745
parentee07df9c505232e997fe01783202305ed5ca9680 (diff)
parentd90f7df67491fc90f51832ff3936b6dacc214321 (diff)
downloadrust-1fac415997c2cad7bc97ba74f33568e0e21d7b63.tar.gz
rust-1fac415997c2cad7bc97ba74f33568e0e21d7b63.zip
Rollup merge of #108086 - alexcrichton:wasm-relaxed-simd-feature, r=eholk
wasm: Register the `relaxed-simd` target feature

This WebAssembly proposal is likely to reach stage 4 soon so this starts the support in Rust for the proposal by adding a target feature that can be enabled via attributes for the stdarch project to bind the intrinsics.
-rw-r--r--compiler/rustc_codegen_ssa/src/target_features.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_ssa/src/target_features.rs b/compiler/rustc_codegen_ssa/src/target_features.rs
index a6afbad5b24..0432a9c5a12 100644
--- a/compiler/rustc_codegen_ssa/src/target_features.rs
+++ b/compiler/rustc_codegen_ssa/src/target_features.rs
@@ -286,6 +286,7 @@ const WASM_ALLOWED_FEATURES: &[(&str, Option<Symbol>)] = &[
     ("mutable-globals", Some(sym::wasm_target_feature)),
     ("nontrapping-fptoint", Some(sym::wasm_target_feature)),
     ("reference-types", Some(sym::wasm_target_feature)),
+    ("relaxed-simd", Some(sym::wasm_target_feature)),
     ("sign-ext", Some(sym::wasm_target_feature)),
     ("simd128", None),
     // tidy-alphabetical-end