about summary refs log tree commit diff
path: root/tests/ui/target-feature/wasm-disable-simd.rs
blob: 998c8674823726f94df005634725ff675fb547b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
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)
}