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! ```
This commit is contained in:
parent
16422dbd89
commit
416017d2de
12
tests/ui/target-feature/wasm-disable-simd.rs
Normal file
12
tests/ui/target-feature/wasm-disable-simd.rs
Normal file
@ -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)
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user