Skip to content

Commit fc96494

Browse files
committed
Update gates
1 parent 3bb0af3 commit fc96494

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

library/coretests/tests/num/flt2dec/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ macro_rules! check_exact_one {
238238
// ftp://ftp.ee.lbl.gov/testbase-report.ps.Z
239239
// or https://www.icir.org/vern/papers/testbase-report.pdf
240240

241+
#[cfg(any(target_arch = "x86", all(target_arch = "aarch64", target_feature = "neon")))]
241242
pub fn f16_shortest_sanity_test<F>(mut f: F)
242243
where
243244
F: for<'a> FnMut(&Decoded, &'a mut [MaybeUninit<u8>]) -> (&'a [u8], i16),
@@ -285,6 +286,7 @@ where
285286
check_shortest!(f(minf16) => b"6", -7);
286287
}
287288

289+
#[cfg(any(target_arch = "x86", all(target_arch = "aarch64", target_feature = "neon")))]
288290
pub fn f16_exact_sanity_test<F>(mut f: F)
289291
where
290292
F: for<'a> FnMut(&Decoded, &'a mut [MaybeUninit<u8>], i16) -> (&'a [u8], i16),

library/coretests/tests/num/flt2dec/random.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ fn shortest_random_equivalence_test() {
174174

175175
#[test]
176176
#[ignore] // it is too expensive
177+
#[cfg(any(target_arch = "x86", all(target_arch = "aarch64", target_feature = "neon")))]
177178
fn shortest_f16_exhaustive_equivalence_test() {
178179
// see the f32 version
179180
use core::num::flt2dec::strategy::dragon::format_shortest as fallback;

0 commit comments

Comments
 (0)