about summary refs log tree commit diff
diff options
context:
space:
mode:
m---------src/llvm-project0
-rw-r--r--tests/ui/target-feature/wasm-disable-simd.rs12
2 files changed, 12 insertions, 0 deletions
diff --git a/src/llvm-project b/src/llvm-project
-Subproject 3a17f74904a74565c54cfac0d67026362d03869
+Subproject b35599be758613448201a49f4b8c7ebfba5558a
diff --git a/tests/ui/target-feature/wasm-disable-simd.rs b/tests/ui/target-feature/wasm-disable-simd.rs
new file mode 100644
index 00000000000..998c8674823
--- /dev/null
+++ b/tests/ui/target-feature/wasm-disable-simd.rs
@@ -0,0 +1,12 @@
+//@ only-wasm32-wasip1
+//@ compile-flags: -Ctarget-feature=-simd128 --crate-type=lib
+//@ build-pass
+
+// This is a regression test of #131031.
+
+use std::arch::wasm32::*;
+
+#[target_feature(enable = "simd128")]
+pub unsafe fn some_simd128_fn(chunk: v128) -> bool {
+    u8x16_all_true(chunk)
+}