From 416017d2de90bf5dd9e13d56f72562fb5eca9041 Mon Sep 17 00:00:00 2001 From: DianQK Date: Wed, 30 Oct 2024 22:32:02 +0800 Subject: [PATCH 1/2] Add a regression test for #131031 The failure output is: ``` SplitVectorOperand Op #1: t51: i32 = llvm.wasm.alltrue TargetConstant:i32<12408>, t50 rustc-LLVM ERROR: Do not know how to split this operator's operand! ``` --- tests/ui/target-feature/wasm-disable-simd.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/ui/target-feature/wasm-disable-simd.rs 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) +} From ebeaaadceae400e371dc592b0ee89d1913d40a03 Mon Sep 17 00:00:00 2001 From: DianQK Date: Wed, 30 Oct 2024 18:14:43 +0800 Subject: [PATCH 2/2] Update LLVM to 19.1.3 --- src/llvm-project | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/llvm-project b/src/llvm-project index 3a17f74904a..b35599be758 160000 --- a/src/llvm-project +++ b/src/llvm-project @@ -1 +1 @@ -Subproject commit 3a17f74904a74565c54cfac0d67026362d038698 +Subproject commit b35599be758613448201a49f4b8c7ebfba5558ac