Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions crates/core_simd/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,11 @@ path = "../test_helpers"

[dev-dependencies]
std_float = { path = "../std_float/", features = ["as_crate"] }

[lints.rust.unexpected_cfgs]
level = "warn"
check-cfg = [
# Internal features aren't marked known config by default, we use these to
# gate tests.
'cfg(target_has_reliable_f16_math)',
]
3 changes: 3 additions & 0 deletions crates/core_simd/tests/f16_ops.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
#![feature(portable_simd)]
#![feature(f16)]
#![expect(internal_features)]
#![feature(cfg_target_has_reliable_f16_f128)]

#[macro_use]
mod ops_macros;

// FIXME: some f16 operations cause rustc to hang on wasm simd
// https://github.com/llvm/llvm-project/issues/189251
#[cfg(not(all(target_arch = "wasm32", target_feature = "simd128")))]
#[cfg(target_has_reliable_f16_math)]
impl_float_tests! { f16, i16 }
Loading