Skip to content

Commit 7d497cc

Browse files
Merge of #520: disable f16 tests for the cranelift backend
2 parents 5b7c840 + f40da91 commit 7d497cc

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

crates/core_simd/Cargo.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,11 @@ path = "../test_helpers"
3131

3232
[dev-dependencies]
3333
std_float = { path = "../std_float/", features = ["as_crate"] }
34+
35+
[lints.rust.unexpected_cfgs]
36+
level = "warn"
37+
check-cfg = [
38+
# Internal features aren't marked known config by default, we use these to
39+
# gate tests.
40+
'cfg(target_has_reliable_f16_math)',
41+
]

crates/core_simd/tests/f16_ops.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
#![feature(portable_simd)]
22
#![feature(f16)]
3+
#![expect(internal_features)]
4+
#![feature(cfg_target_has_reliable_f16_f128)]
35

46
#[macro_use]
57
mod ops_macros;
68

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

0 commit comments

Comments
 (0)