Skip to content

Commit 76ed064

Browse files
committed
disable some tests for non-x86_64 platforms
1 parent e964b37 commit 76ed064

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

testcrate/src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
//! encounter. The randomized fuzz testing is specially designed to cover wide swaths of search
1010
//! space in as few iterations as possible. See `fuzz_values` in `testcrate/tests/misc.rs` for an
1111
//! example.
12+
//!
13+
//! Some floating point tests are only enabled on x86_64, because many other targets do not have
14+
//! correct rounding.
1215
#![no_std]
1316

1417
use compiler_builtins::float::Float;

testcrate/tests/addsub.rs

+1
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ macro_rules! float_sum {
9191
};
9292
}
9393

94+
#[cfg(target_arch = "x86_64")]
9495
#[test]
9596
fn float_addsub() {
9697
use compiler_builtins::float::{

testcrate/tests/conv.rs

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ macro_rules! i_to_f {
1212
};
1313
}
1414

15+
#[cfg(target_arch = "x86_64")]
1516
#[test]
1617
fn int_to_float() {
1718
use compiler_builtins::float::conv::{

0 commit comments

Comments
 (0)