Skip to content

Commit

Permalink
Add a regression test for rust-lang#131031
Browse files Browse the repository at this point in the history
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!
```
  • Loading branch information
DianQK committed Oct 30, 2024
1 parent 16422db commit 416017d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/ui/target-feature/wasm-disable-simd.rs
Original file line number Diff line number Diff line change
@@ -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)
}

0 comments on commit 416017d

Please sign in to comment.